recipe-share-doc-and-notify▌
googleworkspace/cli · updated Apr 8, 2026
Share a Google Doc with collaborators and send them notification emails.
- ›Combines three Google Workspace skills (Drive, Docs, Gmail) to locate documents, grant editor access, and notify recipients in sequence
- ›Automates the workflow of finding docs by name, adding collaborators with write permissions, and emailing them the share link
- ›Requires gws-drive , gws-docs , and gws-gmail skills to be loaded before execution
1d:["$","div",null,{"className":"prose prose-invert max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-4xl prose-h1:mb-2 prose-h2:text-2xl prose-h2:mb-2 prose-h3:text-lg prose-h3:mb-2 prose-p:text-muted-foreground prose-li:text-muted-foreground prose-code:bg-muted prose-code:text-foreground prose-code:px-1 prose-code:py-0.5 prose-code:rounded-sm prose-code:text-sm prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-pre:border-border prose-pre:rounded-md [&_table]:!border-[color:var(--border)] [&_th]:!border-[color:var(--border)] [&_td]:!border-[color:var(--border)]","dangerouslySetInnerHTML":{"__html":"<h1>Share a Google Doc and Notify Collaborators</h1>\n<blockquote>\n<p><strong>PREREQUISITE:</strong> Load the following skills to execute this recipe: <code>gws-drive</code>, <code>gws-docs</code>, <code>gws-gmail</code></p>\n</blockquote>\n<p>Share a Google Docs document with edit access and email collaborators the link.</p>\n<h2>Steps</h2>\n<ol>\n<li>Find the doc: <code>gws drive files list --params '{"q": "name contains '\''Project Brief'\'' and mimeType = '\''application/vnd.google-apps.document'\''"}'</code></li>\n<li>Share with editor access: <code>gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "reviewer@company.com"}'</code></li>\n<li>Email the link: <code>gws gmail +send --to reviewer@company.com --subject 'Please review: Project Brief' --body 'I have shared the project brief with you: https://docs.google.com/document/d/DOC_ID'</code></li>\n</ol>"}}]