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 從公開儲存庫中收錄這些內容。

檢舉或申請下架