Recipe Create Shared Drive

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

Create a Google Shared Drive and add members with appropriate roles.

AI 生成的概览

使用 gws 命令行工具创建 Google 共享云端硬盘并管理成员权限。

功能
该配方依次说明如何创建 Google 共享云端硬盘、为指定成员添加角色,以及列出该硬盘的现有成员。它给出每一步所需的 gws drive 命令和 JSON 参数。最终产出是一个已配置好成员访问权限的共享云端硬盘。
适用场景
当需要为团队或项目新建 Google 共享云端硬盘并授予他人访问权限时使用。它适用于通过 gws 命令行工具完成硬盘创建与权限分配的管理设置任务。
运行要求
需要 gws 命令行工具,并需预先加载 gws-drive 技能。该技能不包含脚本,仅为操作说明。命令本身隐含需要访问 Google Drive 的网络连接和相应的 Google 账号凭据。

Create and Configure a Shared Drive

PREREQUISITE: Load the following skills to execute this recipe: gws-drive

Create a Google Shared Drive and add members with appropriate roles.

Steps

  1. Create shared drive: gws drive drives create --params '{"requestId": "unique-id-123"}' --json '{"name": "Project X"}'
  2. Add a member: gws drive permissions create --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}' --json '{"role": "writer", "type": "user", "emailAddress": "[email protected]"}'
  3. List members: gws drive permissions list --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}'

来源与署名

来源:googleworkspace/cli位于skills/recipe-create-shared-drive提交a3768d0

许可证: 无许可证

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

举报或申请下架