Docs
Get Grantable
GET /grants/grantable
GET
/grants/grantableLists the contexts where the caller can grant access, each with the caller's own permissions there, the access roles they can grant whole and whether they can make someone admin. Without eventId: the organization, its departments and locations. With eventId (from Organizations_GetEvents), or an event token alone: that event, its collaborators, areas and activities.
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| eventId | uuid | Optional |
Response
Type: GetGrantableContextResponse[]
GetGrantableContextResponse
| Field | Type | Description |
|---|---|---|
| contextType | string| null | |
| contextId | uuid | |
| label | string| null | |
| verbs | string[]| null | |
| grantableRoleIds | uuid[]| null | |
| canGrantAdmin | boolean |