Skip to main content

myPermissions

Requires an authenticated session.

Lists the permissions the signed-in user holds in the current organization: exactly the set every permission check enforces (live role grants and granted direct grants).

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query MyPermissions {
myPermissions {
id
name
createdAt
action
description
direct
}
}

Response:

{
"data": {
"myPermissions": [
{
"id": "id",
"name": "string",
"createdAt": "2025-01-15T00:00:00Z",
"action": "string",
"description": "string",
"direct": true
}
]
}
}
myPermissions: [Permission!]!

Type​

Permission object​

A permission.