Productivity

recipe-share-folder-with-team

googleworkspace/cli · updated Apr 8, 2026

$npx skills add https://github.com/googleworkspace/cli --skill recipe-share-folder-with-team
summary

Batch-share Google Drive folders with multiple collaborators at specified permission levels.

  • Requires the gws-drive skill 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

1d:["$","div",null,{"className":"prose prose-invert max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-4xl prose-h1:mb-2 prose-h2:text-2xl prose-h2:mb-2 prose-h3:text-lg prose-h3:mb-2 prose-p:text-muted-foreground prose-li:text-muted-foreground prose-code:bg-muted prose-code:text-foreground prose-code:px-1 prose-code:py-0.5 prose-code:rounded-sm prose-code:text-sm prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-pre:border-border prose-pre:rounded-md [&_table]:!border-[color:var(--border)] [&_th]:!border-[color:var(--border)] [&_td]:!border-[color:var(--border)]","dangerouslySetInnerHTML":{"__html":"<h1>Share a Google Drive Folder with a Team</h1>\n<blockquote>\n<p><strong>PREREQUISITE:</strong> Load the following skills to execute this recipe: <code>gws-drive</code></p>\n</blockquote>\n<p>Share a Google Drive folder and all its contents with a list of collaborators.</p>\n<h2>Steps</h2>\n<ol>\n<li>Find the folder: <code>gws drive files list --params '{"q": "name = '\''Project X'\'' and mimeType = '\''application/vnd.google-apps.folder'\''"}'</code></li>\n<li>Share as editor: <code>gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "colleague@company.com"}'</code></li>\n<li>Share as viewer: <code>gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "stakeholder@company.com"}'</code></li>\n<li>Verify permissions: <code>gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table</code></li>\n</ol>"}}]