Skip to main content
The listUsers query returns users in a workspace along with their attributes and role assignments. Use it to look up user IDs before calling impersonateUser or setUserAttributes.

Signature

Parameters

ID
Filters results to a specific workspace. Required for multi-workspace deployments.

Response

Returns an array of User objects. See User for the full schema. The fields most relevant to user management are:
ID!
The user’s unique ID. Pass this to impersonateUser, setUserAttributes, or deleteUsersFromWorkspace.
String!
The user’s email address.
[UserAttribute!]
Key-value pairs associated with the user. Each entry includes:
  • key — attribute name
  • value — attribute value
  • source — either DATABASE (set via API) or JWT (from SSO claims, read-only)
See User attributes for how these sources differ.
[RoleAssignment!]
The roles assigned to the user and their scope.

Usage example

Impersonate user

Use the user ID to start an embedded session

Set user attributes

Update DATABASE-sourced attributes on a user

Delete users from workspace

Remove users from a workspace