drive.permissions.get
Retrieves a Google Drive permission by file ID and permission ID, returning sharing details as JSON for access audits or sharing checks.
Instructions
Gets a permission by ID. For more information, see Share files, folders, and drives [HTTP GET]. Returns the requested resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: create, delete, list, update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| fileId | Yes | [URL path segment] The ID of the file. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. | |
| permissionId | Yes | [URL path segment] The ID of the permission. | |
| supportsAllDrives | No | [query parameter] Whether the requesting application supports both My Drives and shared drives. | false |
| supportsTeamDrives | No | [query parameter] Deprecated: Use `supportsAllDrives` instead. | false |
| useDomainAdminAccess | No | [query parameter] Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file | false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| kind | No | ||
| role | No | ||
| type | No | ||
| view | No | ||
| domain | No | ||
| deleted | No | ||
| photoLink | No | ||
| displayName | No | ||
| emailAddress | No | ||
| pendingOwner | No | ||
| expirationTime | No | ||
| permissionDetails | No | ||
| allowFileDiscovery | No | ||
| teamDrivePermissionDetails | No | ||
| inheritedPermissionsDisabled | No |