googleworkspace avatar

Recipe Create Shared Drive

This recipe automates the tedious process of setting up Google Shared Drives with proper member permissions. Instead of clicking through the web interface to create a drive, manually add each team member, and assign roles one by one, you get three clean commands that handle drive creation, member addition with specific roles like writer or editor, and permission listing for verification. It's especially handy when onboarding new project teams or setting up departmental drives where you need consistent permission structures. The workflow saves time on bulk operations, though you'll still need the actual drive IDs and email addresses of members you want to add.

skills.sh installs
31K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill recipe-create-shared-drive --agent claude-code

Installs into .claude/skills of the current project.

Files

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": "member@company.com"}'
  3. List members: gws drive permissions list --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}'

Sponsors

Details

Repository
github.com/googleworkspace/cli
Category
CLI & Terminal

More from googleworkspace/cli

All 113
1googleworkspace avatarrecipe-share-doc-and-notifygoogleworkspace/cliShare a Google Docs document with edit access and email collaborators the link.30.9Kskills.sh installs
2googleworkspace avatarrecipe-find-large-filesgoogleworkspace/cliIdentify large Google Drive files consuming storage quota.30.9Kskills.sh installs
3googleworkspace avatarrecipe-review-overdue-tasksgoogleworkspace/cliFind Google Tasks that are past due and need attention.30.8Kskills.sh installs
4googleworkspace avatarrecipe-copy-sheet-for-new-monthgoogleworkspace/cliDuplicate a Google Sheets template tab for a new month of tracking.30.8Kskills.sh installs
5googleworkspace avatarrecipe-batch-invite-to-eventgoogleworkspace/cliAdd a list of attendees to an existing Google Calendar event and send notifications.30.8Kskills.sh installs
6googleworkspace avatarrecipe-create-events-from-sheetgoogleworkspace/cliRead event data from a Google Sheets spreadsheet and create Google Calendar entries for each row.30.7Kskills.sh installs