Recipe Share Folder With Team
googleworkspace/cliThis skill allows users to share Google Drive folders and their contents with specific collaborators, assigning appropriate permissions as editors or viewers. It includes capabilities to locate folders, modify sharing permissions, and verify access levels, making it ideal for teams managing shared resources in Google Workspace. The skill is designed for users who need streamlined, programmatic control over Google Drive sharing workflows.
Share a Google Drive Folder with a Team
PREREQUISITE: Load the following skills to execute this recipe:
gws-driveShare 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
GitHub Owner
Owner: googleworkspace
GitHub Links
- Website: https://developers.google.com/workspace
- Twitter: https://twitter.com/workspacedevs
SKILL.md
name: recipe-share-folder-with-team version: 1.0.0 description: "Share a Google Drive folder and all its contents with a list of collaborators." metadata: 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-driveShare 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