360 Secure SkillHub
360 安全技能中心

recipe-share-folder-with-team

该 Skill 是一份操作配方:先用 gws drive files list 按名称查找 Google Drive 文件夹,再用 permissions create 分别授予编辑者与查看者权限,最后用 permissions list 以表格形式核对已有权限。执行前需先加载 gws-drive 技能并具备 gws 命令与 Google Drive 访问权限。

分类:协作
googleworkspace
热度 72.46
最近更新 2026-10-18 17:15:37

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add googleworkspace/cli/recipe-share-folder-with-team
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
recipe-share-folder-with-team
description
Share a Google Drive folder and all its contents with a list of collaborators.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-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": "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