List the register rows granted to one user, group or project.
The principal-centred list of the Row security screen, across registers: every row (and register-wide grant, with a null row_id) granted directly to the user, group or project named by exactly one of user_id, group_id and project_id, whether or not the caller can read the row (an administrator managing access sees everything the principal holds). A user or a group is also listed for the rows it reaches through a project grant, with via_project; those are read only. Grants made to a user's groups are not expanded: ask per group. Sorted by register, row, then project. Needs View Gridlink Row Security.
| |
|---|
| Scope | permissions:admin (sensitive) |
| Asynchronous | No |
| MCP tool | list_row_access_grants |
| Portal permissions | view_gridlink_row_security |
| Paging | keyset |
| Default order | custom_field_template_id, row_id, via_project_id |
| Sort fields | custom_field_template_id, row_id, via_project_id |
Parameters
| Name | In | Type | Required | Description |
|---|
user_id | query | string or null | Optional | The user whose row grants are listed (exactly one of user_id, group_id and project_id). Grants made to the user's groups are not expanded: ask per group. |
group_id | query | string or null | Optional | The group whose row grants are listed. |
project_id | query | string or null | Optional | The project whose row 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 RowGrantHolding | 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
RowGrantHolding
| Field | Type | Required | Description |
|---|
can_edit | boolean | Required | The grant lets its principal change, delete, link and unlink the row; false for a read grant and for every project grant. |
custom_field_template_id | string | Required | |
row_id | string or null | Required | The row. Null for a register-wide grant, which applies to every row of the register, present and future. |
via_project | RowGrantHoldingProject or null | Required | Set when the user or group reaches the row through a project grant (it can read that project) rather than a grant of its own; such an entry is read only and is changed in the project's security or the row's grants. Null for a grant of the principal's own. |
RowGrantHoldingProject
| Field | Type | Required | Description |
|---|
project_id | string | Required | |
project_name | string or null | Required | Null when the project no longer has a name. |