Recipe Share Folder With Team

作者 googleworkspacea3768d0e82ad無授權條款31K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

Share a Google Drive folder and all its contents with a list of collaborators.

AI 產生的概覽

一份使用 gws CLI 將 Google Drive 資料夾及其內容分享給協作者的配方。

功能
提供依名稱尋找 Google Drive 資料夾、為指定電子郵件地址授予編輯者與檢視者權限,並驗證最終權限的逐步配方。產出為已與所列協作者共用的資料夾以及權限清單。
適用情境
當需要以特定存取層級將 Google Drive 資料夾及其全部內容分享給團隊或關係人時使用。適合需要先授予資料夾權限再加以確認的情境。
執行需求
需要 gws CLI 執行檔與 gws-drive 技能;需要可修改共用設定的 Google Drive 存取權。不包含指令碼。

Share a Google Drive Folder with a Team

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

Share a Google Drive folder and all its contents with a list of collaborators.

Steps

  1. Find the folder: gws drive files list --params '{"q": "name = '\''Project X'\'' and mimeType = '\''application/vnd.google-apps.folder'\''"}'
  2. Share as editor: gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "[email protected]"}'
  3. Share as viewer: gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "[email protected]"}'
  4. Verify permissions: gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table

來源與署名

來源:googleworkspace/cli位於skills/recipe-share-folder-with-team提交a3768d0

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架