recipe-share-folder-with-team

$npx mdskill add googleworkspace/cli/recipe-share-folder-with-team

Share a Google Drive folder with a team of collaborators.

  • Share a folder and its contents with multiple users.
  • Requires gws CLI and gws-drive skill.
  • Uses folder name and mimeType to locate the folder.
  • Creates permissions with writer or reader roles.

SKILL.md

.github/skills/recipe-share-folder-with-teamView on GitHub ↗
---
name: recipe-share-folder-with-team
description: "Share a Google Drive folder and all its contents with a list of collaborators."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "productivity"
    requires:
      bins:
        - gws
      skills:
        - gws-drive
---

# 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": "[email protected]"}'`
3. Share as viewer: `gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "[email protected]"}'`
4. Verify permissions: `gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table`

More from googleworkspace/cli