Skip to main content

AccessRequest

Defined in: js-api/src/dapi.ts:1191

A request for a permission on an entity, for a global permission (no entityId), or, with neither, for help with a denial that came with a message only.

Properties​

PropertyTypeDescriptionDefined in
approved?booleanAbsent while the request is pending.js-api/src/dapi.ts:1228
author?objectThe requester.js-api/src/dapi.ts:1199
author.idstring-js-api/src/dapi.ts:1199
bundle?"use" | "full"The named set the request asks for instead of a list: use ("View and use") or full ("Full access").js-api/src/dapi.ts:1220
createdOn?stringWhen the request was filed, as an ISO date.js-api/src/dapi.ts:1226
entityId?stringId of the entity the permission is asked on; absent for a global permission.js-api/src/dapi.ts:1209
entityName?stringName and type of the entity, when the current user can view it.js-api/src/dapi.ts:1211
entityType?stringType of that entity; absent when the reader cannot view it.js-api/src/dapi.ts:1213
from?objectThe requester's personal group.js-api/src/dapi.ts:1201
from.idstring-js-api/src/dapi.ts:1201
fullAccess?booleanThe request asks for every permission of the entity: bundle is full.js-api/src/dapi.ts:1222
granted?AccessRequestApprovalWhat the approver granted.js-api/src/dapi.ts:1234
groupId?stringThe group or role a membership request asks to join.js-api/src/dapi.ts:1203
groupIsRole?booleanTrue when a membership request asks for a role, not a group.js-api/src/dapi.ts:1207
groupName?stringName of that group or role.js-api/src/dapi.ts:1205
idstringId of the request.js-api/src/dapi.ts:1193
kind?"permission" | "membership"membership for a request to join the group groupId; such a row comes from PermissionsDataSource.myRequests only.js-api/src/dapi.ts:1195
message?stringThe note the requester left for the approver.js-api/src/dapi.ts:1224
permission?stringThe global permission asked for; for an entity, the first of permissions.js-api/src/dapi.ts:1215
permissions?string[]The permissions asked for on the entity. For a fullAccess request, what it stands for, when the current user can view the entity.js-api/src/dapi.ts:1218
resolutionDate?stringWhen the request was resolved, as an ISO date.js-api/src/dapi.ts:1232
resolvedBy?objectWho approved or denied the request.js-api/src/dapi.ts:1230
resolvedBy.friendlyName?string-js-api/src/dapi.ts:1230
resolvedBy.idstring-js-api/src/dapi.ts:1230
status?"pending" | "approved" | "denied" | "withdrawn"Set on the rows of PermissionsDataSource.myRequests; withdrawn is a request its author cancelled.js-api/src/dapi.ts:1197