Skip to main content

List access grants by principal.

GET/api/v1/access-grantspermissions:admin

Keyset list of the grants on folders, projects, dataviews and record templates, by resource_type, resource_id, principal_type and principal_id. user_id lists the user's grants and the grants to their groups, with the group as the source. Dataviews with no grant and projects granted to everyone are listed with source everyone (principal everyone when no principal is named). The access inherited through folders and projects is listed on those resources.

Scopepermissions:admin (sensitive)
AsynchronousNo
MCP toollist_access_grants
Pagingkeyset
Default orderresource_type, resource_id, principal_type, principal_id
Sort fieldsresource_type, resource_id, principal_type, principal_id

Parameters​

NameInTypeRequiredDescription
resource_typequerystring or nullOptionalfolder, project, dataview or record_template.
user_idquerystring or nullOptionalThe user: their own grants, and the grants to their groups (with the group as source).
group_idquerystring or nullOptionalThe group whose grants are listed.
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of AccessGrantListingRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

AccessGrantListing​

FieldTypeRequiredDescription
principalGrantPrincipalRequired
resourceAccessResourceRequired
sourceAccessGrantSourceRequired

AccessGrantSource​

FieldTypeRequiredDescription
group_idstring or nullRequired
typestringRequireddirect; group (the grant reaches the user through this group); or everyone (the resource is open to everyone).

AccessResource​

FieldTypeRequiredDescription
dataview_idstring or nullRequired
folder_idstring or nullRequired
project_idstring or nullRequired
record_template_idstring or nullRequired
typestringRequiredfolder, project, dataview or record_template.

GrantPrincipal​

FieldTypeRequiredDescription
group_idstring or nullRequired
typestringRequireduser or group; everyone in the access listing for what is open to all.
user_idstring or nullRequired