recipe-share-folder-with-team

recipe-share-folder-with-team

熱門

與協作者清單共用一個 Google Drive 資料夾及其所有內容。

2.9萬星標
1669分支
更新於 2026/3/31
SKILL.md
readonlyread-only
name
recipe-share-folder-with-team
description

與協作者清單共用一個 Google Drive 資料夾及其所有內容。

與團隊共用 Google Drive 資料夾

先決條件: 載入以下技能以執行此配方:gws-drive

與協作者清單共用一個 Google Drive 資料夾及其所有內容。

步驟

  1. 尋找資料夾:gws drive files list --params '{"q": "name = '\''Project X'\'' and mimeType = '\''application/vnd.google-apps.folder'\''"}'
  2. 以編輯者身分共用:gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "colleague@company.com"}'
  3. 以檢視者身分共用:gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "stakeholder@company.com"}'
  4. 驗證權限:gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table