Recipe Create Shared Drive
googleworkspace/cliThis skill enables users to create and manage Google Shared Drives by programmatically setting up new drives, adding members with specific roles, and listing current members. It is designed for productivity-focused individuals and developers who want to automate Workspace management tasks through command-line interactions. Key capabilities include drive creation, permission management, and member listing, streamlining collaborative workflows in Google Workspace environments.
Create and Configure a Shared Drive
PREREQUISITE: Load the following skills to execute this recipe:
gws-driveCreate 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}'
GitHub Owner
Owner: googleworkspace
GitHub Links
- Website: https://developers.google.com/workspace
- Twitter: https://twitter.com/workspacedevs
SKILL.md
name: recipe-create-shared-drive version: 1.0.0 description: "Create a Google Shared Drive and add members with appropriate roles." metadata: 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-driveCreate 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}'