Docs
Get Grants
GET /grants
GET
/grantsLists one person's (granteeType User, granteeId their user id) or API key's (ApiKey, from ApiKeys_List) access: direct and role grants at each context, admin grants, and the event access grants that reach them (through a department too). canRemove says whether the caller may remove a row. With the organization token, needs Access.Manage at the organization; with an event token alone, needs Access.Manage in that event and lists only that event's grants. eventId (from Organizations_GetEvents) narrows the list to one event's grants and the event access grants that reach it; it never lists more than the caller could see without it.
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| granteeType | string | Optional | |
| granteeId | uuid | Optional | |
| eventId | uuid | Optional |
Response
Type: GetGrantResponse[]
GetGrantResponse
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| contextType | string| null | |
| contextId | uuid | |
| contextLabel | string| null | |
| eventId | uuid| null | |
| accessRole | GetGrantResponseRoleInfo | |
| permission | string| null | |
| source | string| null | |
| sourceLabel | string| null | |
| condition | EventAccessCondition | |
| canRemove | boolean |
GetGrantResponseRoleInfo
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| name | string| null |
EventAccessCondition
| Field | Type | Description |
|---|---|---|
| logic | string| null | |
| groups | EventAccessConditionGroup[]| null | |
| attributeIds | uuid[]| null |
EventAccessConditionGroup
| Field | Type | Description |
|---|---|---|
| logic | string| null | |
| conditions | EventAccessConditionCondition[]| null |