Menu
Get Role Access Api
Get a role
GET
/v2025-07-11/access/{resourceType}/{resourceId}/roles/{roleName}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Get Role Access Api action (under Access).
- Fill in the fields below, then reference the result from later steps as
{{getRoleAccessApi.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getRoleAccessApi.response.data.<field>}}.
{
"name": "administrator",
"title": "Administrator",
"resourceType": "organization",
"resourceId": "or0Bc1hcJ",
"appliesToUsers": true,
"appliesToRobots": true,
"permissions": [
{
"type": "sanity.document.filter.mode",
"action": null,
"name": "legal-documents",
"params": {
"dataset": "development"
}
}
],
"description": "Administrators can manage billing details, legal contacts, organization users, and manage project ownership.",
"isCustom": false
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?