Menu
Get Permission
Retrieve a Permission Rule
GET
/permissions/{id}Use it in a workflow
- Add a step and choose the Directus connector.
- Pick the Get Permission action (under Permissions).
- Fill in the fields below, then reference the result from later steps as
{{getPermission.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getPermission.response.data.<field>}}.
{
"data": {
"id": 1,
"collection": "customers",
"action": "create",
"permissions": {},
"validation": {},
"presets": {},
"fields": [
"string"
],
"policy": "00000000-0000-0000-0000-000000000000"
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?