Docs

Get Grants

GET /grants

GET/grants

Lists 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

FieldTypeRequiredDescription
granteeTypestringOptional
granteeIduuidOptional
eventIduuidOptional

Response

Type: GetGrantResponse[]

GetGrantResponse

FieldTypeDescription
iduuid
contextTypestring| null
contextIduuid
contextLabelstring| null
eventIduuid| null
accessRoleGetGrantResponseRoleInfo
permissionstring| null
sourcestring| null
sourceLabelstring| null
conditionEventAccessCondition
canRemoveboolean

GetGrantResponseRoleInfo

FieldTypeDescription
iduuid
namestring| null

EventAccessCondition

FieldTypeDescription
logicstring| null
groupsEventAccessConditionGroup[]| null
attributeIdsuuid[]| null

EventAccessConditionGroup

FieldTypeDescription
logicstring| null
conditionsEventAccessConditionCondition[]| null