recipe-create-shared-drive
googleworkspace/cli
Create a Google Shared Drive and manage member access with specific roles.
What is recipe-create-shared-drive?
This recipe automates the setup of a Google Shared Drive and adds team members with appropriate permissions. Use it when you need to quickly provision a shared workspace for collaborative projects.
- Create a new Google Shared Drive with a unique identifier
- Add members to the drive with specified roles (e.g., writer, reader)
- List all members and their permissions on the drive
- Support for multiple member types and role assignments
How to install recipe-create-shared-drive
npx skills add null --skill recipe-create-shared-drive- gws-drive skill must be installed
- gws CLI tool must be available
How to use recipe-create-shared-drive
- 1.Create a shared drive using gws drive drives create with a unique requestId and desired drive name
- 2.Add members by calling gws drive permissions create with the drive ID, member email, and desired role
- 3.Verify members were added by listing permissions with gws drive permissions list
Use cases
- Set up a shared drive for a new project and immediately add team members
- Automate onboarding workflows that require shared drive creation and permission assignment
- Provision collaborative workspaces for cross-functional teams with predefined access levels
- Google Workspace administrators
- Project managers setting up team collaboration spaces
- DevOps engineers automating workspace provisioning
recipe-create-shared-drive FAQ
The recipe supports standard Google Drive roles such as writer and reader. Refer to Google Workspace documentation for the complete list of available roles.
Yes, the requestId should be unique for each drive creation request to ensure idempotency.
The recipe shows adding members one at a time. To add multiple members, repeat the permissions create command for each member.
Google Workspace will handle the request according to its API behavior; check the gws-drive skill documentation for specific error handling.
Full instructions (SKILL.md)
Source of truth, from googleworkspace/cli.
name: recipe-create-shared-drive description: "Create a Google Shared Drive and add members with appropriate roles." metadata: version: 0.22.5 openclaw: category: "recipe" domain: "productivity" requires: bins: - gws skills: - gws-drive
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
- Create shared drive:
gws drive drives create --params '{"requestId": "unique-id-123"}' --json '{"name": "Project X"}' - Add a member:
gws drive permissions create --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}' --json '{"role": "writer", "type": "user", "emailAddress": "member@company.com"}' - List members:
gws drive permissions list --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}'
Related skills
More from googleworkspace/cli and the wider catalog.
gws-gmail
Send, read, and manage Gmail emails via Google Workspace CLI.
gws-drive
Manage Google Drive files, folders, and shared drives via CLI.
gws-docs
Read and write Google Docs via command line.
gws-calendar
Manage Google Calendar events, calendars, and access control via CLI.
gws-sheets
Read and write Google Sheets spreadsheets via CLI.
gws-gmail-send
Send emails via Gmail with attachments, CC/BCC, HTML support, and draft options.