技能 效率工具 与团队共享 Google Drive 文件夹

与团队共享 Google Drive 文件夹

v20260401
recipe-share-folder-with-team
通过 gws 系列命令查找目标 Google Drive 文件夹,批量赋予编辑与查看权限并校验,快速实现团队共享与协作。
获取技能
89 次下载
概览

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": "colleague@company.com"}'
  3. Share as viewer: gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "stakeholder@company.com"}'
  4. Verify permissions: gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table
信息
Category 效率工具
Name recipe-share-folder-with-team
版本 v20260401
大小 1.09KB
更新时间 2026-04-08
语言