Skip to main content

Share Drive item

Give a user, group, domain or anyone with the link access to a file or folder.

Command in the Google Workspace toolkit · id ooa.google/drive_create_permission · 10 inputs (2 required), 1 output

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.
Share withStringNouserWho receives access.
RoleStringNoreaderAccess level; owner hands the item over to the person (G5).
EmailStringNoUser or group address (for user and group).
DomainStringNoDomain such as example.com (for domain).
NotifyBooleanNotrueSend a notification email (user and group only).
MessageStringNoText added to the notification email.
ExpiresDateTimeNoWhen the access ends (UTC; users and groups only, Google Workspace accounts).
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.

Outputs​

OutputTypeWhat it is
permission_idStringId of the new permission.