Recipe Share Doc And Notify

作者 googleworkspacea3768d0e82ad无许可证31K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

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

AI 生成的概览

将 Google 文档以编辑权限共享,并通过电子邮件把链接发送给协作者。

功能
该配方按名称查找 Google 文档,为指定用户授予 writer(编辑)权限,并向该协作者发送包含文档链接的电子邮件。它是仅含说明的工作流,通过 gws 命令行工具串联 Google Drive、Google Docs 和 Gmail 操作。
适用场景
当你需要一次性为同事授予现有 Google 文档的编辑权限并通过邮件通知对方时使用。适合快速协作交接,例如把项目简报发给审阅人。
运行要求
需要 gws 命令行工具,以及 gws-drive、gws-docs 和 gws-gmail 技能,并需具备对 Google Drive、Docs 和 Gmail 的已认证访问权限。不附带脚本,仅为说明文档。

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'

来源与署名

来源:googleworkspace/cli位于skills/recipe-share-doc-and-notify提交a3768d0

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架