drive_permissions_list
Audit file sharing by listing all permissions for a file. Specify fields to reveal grantees, such as email addresses or domains, and check for public access.
Instructions
List all permissions on a file. Use to audit sharing state — e.g. a permission with type "anyone" means the file is publicly accessible; there is no separate is-public field. Pass fields (e.g. "permissions(id,type,role,emailAddress,domain)") to identify grantees — the default response omits emailAddress/domain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Fields to include (e.g. "permissions(id,type,role,emailAddress,domain)") | |
| fileId | Yes | The file to list permissions for | |
| pageSize | No | Max permissions to return | |
| pageToken | No | Page token from a previous call |