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.
recipe-create-task-list
Set up a new Google Tasks list with initial tasks using the Google Workspace CLI.
recipe-create-vacation-responder
Set up Gmail out-of-office auto-replies with custom messages and date ranges.
recipe-deploy-apps-script
Push local files to a Google Apps Script project.
recipe-draft-email-from-doc
Read a Google Doc and draft it as a Gmail message body.
recipe-email-drive-link
Share a Google Drive file and email the link with a message to recipients.
recipe-find-free-time
Query Google Calendar free/busy status across multiple users to find available meeting slots.