Menu
Get Permission
Get a permission
GET
/v2025-07-11/access/{resourceType}/{resourceId}/permissions/{permissionName}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Get Permission action (under Access).
- Fill in the fields below, then reference the result from later steps as
{{getPermission.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getPermission.response.data.<field>}}.
{
"type": "sanity.document.filter.mode",
"name": "legal-documents",
"title": "Permission for \"Legal\" Folder",
"resourceType": "project",
"resourceId": "c7ja4siy",
"actions": [
"mode"
],
"description": "Permission for \"Legal\" Folder",
"ownerOrganizationId": "or0Bc1hcJ",
"isCustom": false,
"params": {
"filter": "*[_type == \"legal\"]"
}
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?