Skip to main content

List who can reach a document.

GET/api/v1/documents/{document_id}/effective-accesspermissions:admin

Keyset list of the people who can open the document, with every reason (direct, group, folder, project, register). list=partial lists the people whose access depends on a folder or project the resolver cannot read. Each source names what the access comes from by ID and name, and the principals its grant names.

Scopepermissions:admin (sensitive)
AsynchronousNo
MCP toollist_document_effective_access
Portal permissionsview_document_effective_access
Pagingkeyset
Default orderprincipal_type, principal_id
Sort fieldsprincipal_type, principal_id

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
listquerystring or nullOptionaleffective (the default) or partial: people whose access depends on something the resolver cannot read.
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
404not_foundapplication/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 EffectiveAccessRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

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

Schemas​

EffectiveAccess​

FieldTypeRequiredDescription
can_editbooleanRequired
principalGrantPrincipalRequired
sourcesarray of EffectiveSourceRequiredEvery reason the person can reach the document.

EffectiveSource​

FieldTypeRequiredDescription
custom_field_template_idstring or nullRequiredThe register of a record source.
folder_idstring or nullRequiredThe folder of a folder source.
group_idstring or nullRequiredThe group of a group grant.
namestring or nullRequiredThe group, folder, project or register the access comes from; null when there is none.
project_idstring or nullRequiredThe project of a project source, or of a folder source that also needs it.
project_namestring or nullRequiredThat project's name.
row_idstring or nullRequiredThe register row of a record source.
typestringRequireddirect, group, folder, project, record or everyone; an open enum.
viaarray of EffectiveSourceViaRequiredWhom the folder, project or register grant names: the person, a group they belong to, or everyone.

EffectiveSourceVia​

FieldTypeRequiredDescription
group_idstring or nullRequired
namestring or nullRequiredThe group's name.
typestringRequireduser, group or everyone.

GrantPrincipal​

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