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-bot
googleworkspace-bot
热度 73.80
最近更新 2026-05-11 17:31:50
分类:协作依赖:第三方 API / 代码执行应用场景:工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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