Check Drive permission
Check whether a person (or their domain, or anyone with the link) can read, comment on or edit a file or folder.
Command in the Google Workspace toolkit · id ooa.google/drive_check_permission · 5 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Item ID | String | Yes | File or folder id. A path under My Drive starting with / also works, e.g. /Reports/2026/summary.pdf. | |
| String | No | The person's email address; the signed-in account's own rights when empty (G5). | ||
| Access | String | No | read | The access to check; delete (own rights only) asks whether the item may be deleted (G5). |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. |
Outputs
| Output | Type | What it is |
|---|---|---|
| has_access | Boolean | True when the person has at least the asked access. |
| role | String | The highest role found, empty when none. |