Recipe Share Doc And Notify

by googleworkspacea3768d0e82adNo licenseListed Oct 8, 2026Updated Oct 8, 2026

Share a Google Docs document with edit access and email collaborators the link.

AI-generated overview

Shares a Google Docs document with edit access and emails collaborators the link.

What it does
This recipe locates a Google Docs document by name, grants a specified user writer (edit) permission on it, and sends that collaborator an email containing the document link. It is an instructions-only workflow that chains Google Drive, Google Docs, and Gmail operations through the gws command-line tool.
When to use it
Use it when you need to give a colleague edit access to an existing Google Doc and notify them by email in one sequence. It suits quick collaboration handoffs such as sending a project brief to a reviewer.
Requirements
Requires the gws command-line tool plus the gws-drive, gws-docs, and gws-gmail skills, and authenticated access to Google Drive, Docs, and Gmail. It ships no scripts; it is instructions only.

Share a Google Doc and Notify Collaborators

PREREQUISITE: Load the following skills to execute this recipe: gws-drive, gws-docs, gws-gmail

Share a Google Docs document with edit access and email collaborators the link.

Steps

  1. Find the doc: gws drive files list --params '{"q": "name contains '\''Project Brief'\'' and mimeType = '\''application/vnd.google-apps.document'\''"}'
  2. Share with editor access: gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "[email protected]"}'
  3. Email the link: gws gmail +send --to [email protected] --subject 'Please review: Project Brief' --body 'I have shared the project brief with you: https://docs.google.com/document/d/DOC_ID'

Source and attribution

Source:googleworkspace/cliinskills/recipe-share-doc-and-notifyat commita3768d0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal