Get Users
List all users of a resource and their assigned roles.
GET/v2025-07-11/access/{resourceType}/{resourceId}/users
Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Get Users action (under Access).
- Fill in the fields below, then reference the result from later steps as
{{getUsers.response.data}}.
Request
Path parameters
resourceTypestringrequired
The resource type to scope the access requests to.
One oforganizationprojectmedia-librarycanvasdashboardviewknowledge-base
resourceIdstringrequired
The resource ID to scope the access request to. Must be a valid ID for the resource type.
Query parameters
nextCursorstring
The cursor for pagination. Use the nextCursor from the previous response to get the next page.
limitinteger
The number of items to return per page.
Default 100
includeImpliedRolesboolean
Whether to include implied roles in the response.
Default false
sortBystring
Field by which to sort result. Currently supports field 'displayName'
orderBystring
In which order to list results
emailstring
Filter results based on `email` match
displayNamestring
Filter results based on `displayName` match
Response
Returns 200 with a any. Read it in later steps with {{getUsers.response.data.<field>}}.
Need more? See the Sanity guide for connection setup and behaviour shared by every action.