IntegrationsGoogle workspaceActions
List Google Drive permissions
List ACL fragments on a Drive file the connected principal can access. permission_details remains an unflattened array.
drive.permissions.list · Google Workspace · v1
Details
Scopes
https://www.googleapis.com/auth/drive.metadata.readonly
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
file_id | string | Yes | minLength 1; maxLength 256 |
page_size | integer | No | minimum 1; maximum 100 |
page_token | string | No | minLength 1; maxLength 512 |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
permissions | array<object> | Yes | maxItems 100 |
permissions[] | object | Yes | additionalProperties false |
permissions[].id | string | Yes | maxLength 256 |
permissions[].role | string | Yes | maxLength 64 |
permissions[].type | string | Yes | maxLength 64 |
permissions[].email_address | string | No | maxLength 320 |
permissions[].domain | string | No | maxLength 256 |
permissions[].view | string | No | maxLength 64 |
permissions[].allow_file_discovery | boolean | No | — |
permissions[].expires_at | string | No | maxLength 64 |
permissions[].deleted | boolean | No | — |
permissions[].pending_owner | boolean | No | — |
permissions[].inherited_permissions_disabled | boolean | No | — |
permissions[].permission_details | array<object> | Yes | maxItems 20 |
permissions[].permission_details[] | object | Yes | additionalProperties false |
permissions[].permission_details[].permission_type | string | No | maxLength 64 |
permissions[].permission_details[].role | string | Yes | maxLength 64 |
permissions[].permission_details[].inherited | boolean | Yes | — |
permissions[].permission_details[].inherited_from_id | string | No | maxLength 256 |
next_page_token | string | No | maxLength 512 |
Raw schema
Input
{
"type": "object",
"additionalProperties": false,
"properties": {
"file_id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"page_size": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page_token": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
},
"required": [
"file_id"
]
}Output
{
"type": "object",
"additionalProperties": false,
"properties": {
"permissions": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"maxLength": 256
},
"role": {
"type": "string",
"maxLength": 64
},
"type": {
"type": "string",
"maxLength": 64
},
"email_address": {
"type": "string",
"maxLength": 320
},
"domain": {
"type": "string",
"maxLength": 256
},
"view": {
"type": "string",
"maxLength": 64
},
"allow_file_discovery": {
"type": "boolean"
},
"expires_at": {
"type": "string",
"maxLength": 64
},
"deleted": {
"type": "boolean"
},
"pending_owner": {
"type": "boolean"
},
"inherited_permissions_disabled": {
"type": "boolean"
},
"permission_details": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"permission_type": {
"type": "string",
"maxLength": 64
},
"role": {
"type": "string",
"maxLength": 64
},
"inherited": {
"type": "boolean"
},
"inherited_from_id": {
"type": "string",
"maxLength": 256
}
},
"required": [
"role",
"inherited"
]
},
"maxItems": 20
}
},
"required": [
"id",
"role",
"type",
"permission_details"
]
},
"maxItems": 100
},
"next_page_token": {
"type": "string",
"maxLength": 512
}
},
"required": [
"permissions"
]
}