recipe-share-folder-with-teamby Google
Share a Google Drive folder and all its contents with a list of collaborators.
npx skills add https://github.com/googleworkspace/cli --skill recipe-share-folder-with-teamShare 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
More skills from Google
gws-groupssettings
by Google
Manage Google Groups settings.
gws-modelarmor-sanitize-response
by Google
Google Model Armor: Sanitize a model response through a Model Armor template.
gws-people
by Google
Google People: Manage contacts and profiles.
gws-reseller
by Google
Google Workspace Reseller: Manage Workspace subscriptions.
gws-shared
by Google
gws CLI: Shared patterns for authentication, global flags, and output formatting.
gws-sheets
by Google
Google Sheets: Read and write spreadsheets.
gws-sheets-append
by Google
Google Sheets: Append a row to a spreadsheet.
gws-sheets-read
by Google
Google Sheets: Read values from a spreadsheet.