Recipe Share Folder With Team

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

nota-america Updated

File contents

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

nota-america/forgecat-agent-profiles/tree/main/profiles/googleworkspace/cli/googleworkspace_cli-skills/for-codex/.agents/skills/recipe-share-folder-with-team commit 0eaac59e33

Frequently asked questions

npx skillmds@latest add nota-america/recipe-share-folder-with-team