Recipe Share Folder With Team

by googleworkspacea3768d0e82adNo licenseListed Oct 8, 2026Updated Oct 8, 2026

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

Instructions onlyProductivity & Workflow
AI-generated overview

A recipe for sharing a Google Drive folder and its contents with collaborators using the gws CLI.

What it does
Provides a step-by-step recipe for locating a Google Drive folder by name, granting editor and viewer permissions to specified email addresses, and verifying the resulting permissions. It produces a shared folder with the listed collaborators and a permission listing.
When to use it
Use when a Google Drive folder and everything inside it needs to be shared with a team or stakeholders at specific access levels. It suits situations where folder permissions must be granted and then confirmed.
Requirements
Requires the gws CLI binary and the gws-drive skill; access to Google Drive with permission to modify sharing settings. No scripts are included.

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

Source and attribution

Source:googleworkspace/cliinskills/recipe-share-folder-with-teamat commita3768d0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal