recipe-share-folder-with-team
Installation
Summary
Batch-share Google Drive folders with multiple collaborators at specified permission levels.
- Requires the
gws-driveskill to execute folder sharing and permission management operations - Supports role-based access control: assign editor (writer) or viewer (reader) permissions to individual collaborators
- Includes folder discovery by name and permission verification steps to confirm successful sharing
- Designed as a multi-step recipe for programmatic team collaboration workflows
SKILL.md
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
- Find the folder:
gws drive files list --params '{"q": "name = '\''Project X'\'' and mimeType = '\''application/vnd.google-apps.folder'\''"}' - Share as editor:
gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "colleague@company.com"}' - Share as viewer:
gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "stakeholder@company.com"}' - Verify permissions:
gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table
Related skills
More from googleworkspace/cli
gws-gmail
Gmail: Send, read, and manage email.
26.2Kgws-docs
Read and write Google Docs.
26.1Kgws-drive
Google Drive: Manage files, folders, and shared drives.
26.0Kgws-sheets
Google Sheets: Read and write spreadsheets.
24.7Kgws-calendar
Google Calendar: Manage calendars and events.
24.6Kgws-docs-write
Google Docs: Append text to a document.
21.8K