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
| 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. | |
| Share with | String | No | user | Who receives access. |
| Role | String | No | reader | Access level; owner hands the item over to the person (G5). |
| String | No | User or group address (for user and group). | ||
| Domain | String | No | Domain such as example.com (for domain). | |
| Notify | Boolean | No | true | Send a notification email (user and group only). |
| Message | String | No | Text added to the notification email. | |
| Expires | DateTime | No | When the access ends (UTC; users and groups only, Google Workspace accounts). | |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. |
Outputs
| Output | Type | What it is |
|---|---|---|
| permission_id | String | Id of the new permission. |