List access grants by principal.
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.
| |
|---|
| Scope | permissions:admin (sensitive) |
| Asynchronous | No |
| MCP tool | list_access_grants |
| Paging | keyset |
| Default order | resource_type, resource_id, principal_type, principal_id |
| Sort fields | resource_type, resource_id, principal_type, principal_id |
Parameters
| Name | In | Type | Required | Description |
|---|
resource_type | query | string or null | Optional | folder, project, dataview or record_template. |
user_id | query | string or null | Optional | The user: their own grants, and the grants to their groups (with the group as source). |
group_id | query | string or null | Optional | The group whose grants are listed. |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
200 body
| Field | Type | Required | Description |
|---|
items | array of AccessGrantListing | Required | |
next_cursor | string or null | Required | |
warnings | array of object | Required | |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
AccessGrantListing
AccessGrantSource
| Field | Type | Required | Description |
|---|
group_id | string or null | Required | |
type | string | Required | direct; group (the grant reaches the user through this group); or everyone (the resource is open to everyone). |
AccessResource
| Field | Type | Required | Description |
|---|
dataview_id | string or null | Required | |
folder_id | string or null | Required | |
project_id | string or null | Required | |
record_template_id | string or null | Required | |
type | string | Required | folder, project, dataview or record_template. |
GrantPrincipal
| Field | Type | Required | Description |
|---|
group_id | string or null | Required | |
type | string | Required | user or group; everyone in the access listing for what is open to all. |
user_id | string or null | Required | |