360 Secure SkillHub
360 安全技能中心

Recipe Share Folder With Team

核心功能:依托gws工具查找目标Google Drive文件夹,为团队成员设置编辑或查看权限,并验证权限配置。典型场景:项目协作时,共享文件夹给同事、利益相关者。输入需提供文件夹名、成员邮箱及权限类型,输出为权限操作结果及表格化权限清单,需依赖gws-drive技能。

googleworkspace-bot
googleworkspace-bot
热度 73.68
最近更新 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