userInfo Query
Look up a single user by id, if the current user is allowed to see them. Returns a UserInfo record (a safe subset of user fields).
Visible users are the caller themselves and anyone sharing a workspace or an organization with the caller, where belonging to an organization means being a member of any of its workspaces or holding an organization-level user record. Out-of-network and nonexistent ids both return null rather than an error. Deactivated and invite-pending users inside the caller's network are returned.
This query is the id-based counterpart to user(email: Email!).
Use userInfo when the caller already has a user id (typically
from a list query like searchPeople, or from an existing
relationship such as a Todo's assignee, a Project's member list,
or a Workspace's user list); use user when only an email is
known — email lookup deliberately remains global, since knowing an
exact email address acts as a capability in Pie's invite flows.
Both queries return the same UserInfo shape. UserInfo is distinct
from the User type (returned by searchPeople and users):
UserInfo is a safer subset omitting workspaceUsers,
assignments, and historyLines, and it adds two scoped count
fields — assignedTodosCount(organizationId) and
assignedIssuesCount(organizationId) — that take an organization
filter.
Arguments
#
Response
#
Returns UserInfo .
