Recipe Share Folder With Team

作者 googleworkspacea3768d0e82ad无许可证31K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

Share a Google Drive folder and all its contents with a list of collaborators.

AI 生成的概览

一份使用 gws CLI 将 Google Drive 文件夹及其内容共享给协作者的配方。

功能
提供按名称查找 Google Drive 文件夹、为指定电子邮件地址授予编辑者和查看者权限,并验证最终权限的分步配方。其产出是已与所列协作者共享的文件夹以及权限列表。
适用场景
当需要以特定访问级别将 Google Drive 文件夹及其全部内容共享给团队或相关方时使用。适用于需要先授予文件夹权限再加以确认的场景。
运行要求
需要 gws CLI 可执行文件和 gws-drive 技能;需要具备可修改共享设置的 Google 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": "[email protected]"}'
  3. Share as viewer: gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "[email protected]"}'
  4. Verify permissions: gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table

来源与署名

来源:googleworkspace/cli位于skills/recipe-share-folder-with-team提交a3768d0

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架