---
id: ssh2-recipe-share-doc-and-notify
name: "recipe-share-doc-and-notify"
url: https://skills.yangsir.net/skill/ssh2-recipe-share-doc-and-notify
author: googleworkspace
domain: ai-productivity-automation
tags: ["google-docs", "document-sharing", "email-notifications", "collaboration-tools", "google-workspace"]
install_count: 30100
rating: 4.60 (23 reviews)
github: https://github.com/googleworkspace/cli
---

# recipe-share-doc-and-notify

> 分享Google文档，授予编辑权限，并自动通过电子邮件通知协作者，方便团队高效协作，共同编辑文档内容。

**Stats**: 30,100 installs · 4.6/5 (23 reviews)

## Before / After 对比

### 快速分享文档并通知，提升协作效率。

## Readme

# 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": "reviewer@company.com"}'`
3. Email the link: `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'`



---
*Source: https://skills.yangsir.net/skill/ssh2-recipe-share-doc-and-notify*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh2-recipe-share-doc-and-notify/markdown*