Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Item IDStringYesFile or folder id. A path under My Drive starting with / also works, e.g. /Reports/2026/summary.pdf.
EmailStringNoThe person's email address; the signed-in account's own rights when empty (G5).
AccessStringNoreadThe access to check; delete (own rights only) asks whether the item may be deleted (G5).
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.

Outputs​

OutputTypeWhat it is
has_accessBooleanTrue when the person has at least the asked access.
roleStringThe highest role found, empty when none.