Magidoc

users
Query

Returns all Users in the specified Organization. The required organizationId argument is the Organization id; results are scoped to that one Organization.

Access rule: the caller's permission to view the organization is checked via Pie's standard policy — view is allowed if the caller is an admin in the organization or has any workspace membership in one of the organization's workspaces. If the caller fails this check (including when the organizationId is for an organization the caller doesn't belong to), the query returns an empty list, not an error. If the caller passes the check, every user holding a membership in any of the organization's workspaces is returned, with no further per-user filtering. Organization-level admins who have no membership in any of the organization's workspaces are not included.

The response includes deactivated users (accountDeactivated: true) and pending-invite users (isInvite: true) by default. Clients that want only active members must filter client-side.

The return type is [User] — the same User type returned by searchPeople, with the same fields populated. Use user(email: Email!) or userInfo(id: Int!) when only an email or id is known for an individual user.

Arguments

#

organizationId

Non-null

Response

#

Returns [User ].

Example

#