Drive Share File
GoogleDriveAddPermissionTool · Tools · Connections
Share a Google Drive file with a user, group, domain or anyone with the link, at a role. Google may email the people it is shared with. Returns the new permission.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file_id | string | Yes | The file's Drive id. |
grantee | object | object | object | object | Yes | Who gets access: a user or group by email, a Google Workspace domain, or anyone with the link. |
message | string | No | A message for the notification email. |
notify | boolean | No | Whether Google emails the user or group about the share. Defaults to yes; only for a user or group. |
role | "reader" | "commenter" | "writer" | "fileOrganizer" | "organizer" | Yes | The access granted. |