younifyd
Menu

List Project Role Assignments

List users with roles

GET/projects/{projectId}/acl

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the List Project Role Assignments action (under Roles).
  3. Fill in the fields below, then reference the result from later steps as {{listProjectRoleAssignments.response.data}}.

Request

Path parameters

projectIdstringrequired

The ID of the project

Query parameters

roles[]array<string>

Only return users who have at least one of these roles. Use the `roles[]` form, for example `?roles[]=editor` or `?roles[]=editor&roles[]=viewer`. A single plain `?roles=editor` returns `400` with the message `roles must be an array`. Duplicate role names also return `400`.

Response

Returns 200 with a array<object>. Read it in later steps with {{listProjectRoleAssignments.response.data.<field>}}.

Need more? See the Sanity guide for connection setup and behaviour shared by every action.