Share a doc (person or link)
share_docShare a Google Doc by granting access to an email as reader, commenter, or writer (with optional notification), setting anyone-with-link access, or disabling link sharing.
Instructions
Grant access to a Google Doc. With email, share with that person as reader/commenter/writer (optionally sending a notification). Without email, set anyone-with-link access to that role, or role "none" to disable link sharing. (To revoke a specific person’s access, use unshare_doc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | access level; default writer. "none" (link only) disables link sharing. | |
| No | person to share with; omit to set anyone-with-link access instead | ||
| notify | No | when sharing with a person, send a notification email (default true) | |
| account | No | Google account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account. | |
| documentId | Yes |