List access grants by principal.
GET/api/v1/access-grantspermissions:admin
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | permissions:admin (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | list_access_grants |
| ページング | keyset |
| 既定の並び順 | resource_type, resource_id, principal_type, principal_id |
| 並べ替えに使えるフィールド | resource_type, resource_id, principal_type, principal_id |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
resource_type | query | string または null | 任意 | folder, project, dataview or record_template. |
user_id | query | string または null | 任意 | The user: their own grants, and the grants to their groups (with the group as source). |
group_id | query | string または null | 任意 | The group whose grants are listed. |
limit | query | integer | 任意 | 既定値: 50; ≥ 1 |
cursor | query | string | 任意 | |
sort | query | string | 任意 | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 の本文
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | AccessGrantListing の配列 | 必須 | |
next_cursor | string または null | 必須 | |
warnings | object の配列 | 必須 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
AccessGrantListing
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
principal | GrantPrincipal | 必須 | |
resource | AccessResource | 必須 | |
source | AccessGrantSource | 必須 |
AccessGrantSource
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_id | string または null | 必須 | |
type | string | 必須 | direct; group (the grant reaches the user through this group); or everyone (the resource is open to everyone). |
AccessResource
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dataview_id | string または null | 必須 | |
folder_id | string または null | 必須 | |
project_id | string または null | 必須 | |
record_template_id | string または null | 必須 | |
type | string | 必須 | folder, project, dataview or record_template. |
GrantPrincipal
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_id | string または null | 必須 | |
type | string | 必須 | user or group; everyone in the access listing for what is open to all. |
user_id | string または null | 必須 |