Menu
Get Roles
List roles assignable to a user on this resource.
GET
/v2025-07-11/access/{resourceType}/{resourceId}/rolesUse it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Get Roles action (under Access).
- Fill in the fields below, then reference the result from later steps as
{{getRoles.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with a any. Read it in later steps with {{getRoles.response.data.<field>}}.
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?