googleworkspace avatar

Recipe Share Folder With Team

A straightforward automation for bulk-sharing Google Drive folders when you're setting up project workspaces or onboarding teams. It handles the common pattern of finding a folder by name, then applying different permission levels to different collaborators in one go. The verification step at the end is clutch because Google Drive permissions can be finicky and it's easy to miss someone or set the wrong access level. Works well when you have a consistent folder structure and need to replicate sharing patterns across multiple projects, though you'll still need to manually specify each email address and their role.

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

Install

$ npx -y skills add googleworkspace/cli --skill recipe-share-folder-with-team --agent claude-code

Installs into .claude/skills of the current project.

Files

Share a Google Drive Folder with a Team

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

Share a Google Drive folder and all its contents with a list of collaborators.

Steps

  1. Find the folder: gws drive files list --params '{"q": "name = '\''Project X'\'' and mimeType = '\''application/vnd.google-apps.folder'\''"}'
  2. Share as editor: gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "colleague@company.com"}'
  3. Share as viewer: gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "stakeholder@company.com"}'
  4. Verify permissions: gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table

Sponsors

Details

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

More from googleworkspace/cli

All 113
1googleworkspace avatarpersona-customer-supportgoogleworkspace/cliManage customer support — track tickets, respond, escalate issues.30.7Kskills.sh installs
2googleworkspace avatarrecipe-forward-labeled-emailsgoogleworkspace/cliFind Gmail messages with a specific label and forward them to another address.30.7Kskills.sh installs
3googleworkspace avatarpersona-event-coordinatorgoogleworkspace/cliPlan and manage events — scheduling, invitations, and logistics.30.6Kskills.sh installs
4googleworkspace avatargws-modelarmorgoogleworkspace/cliGoogle Model Armor: Filter user-generated content for safety.30.6Kskills.sh installs
5googleworkspace avatarpersona-sales-opsgoogleworkspace/cliManage sales workflows — track deals, schedule calls, client comms.30.6Kskills.sh installs
6googleworkspace avatarrecipe-create-expense-trackergoogleworkspace/cliSet up a Google Sheets spreadsheet for tracking expenses with headers and initial entries.30.6Kskills.sh installs