---
id: ssh2-recipe-share-folder-with-team
name: "recipe-share-folder-with-team"
url: https://skills.yangsir.net/skill/ssh2-recipe-share-folder-with-team
author: googleworkspace
domain: product
tags: ["google-drive", "team-collaboration", "folder-sharing", "access-control", "google-workspace"]
install_count: 14500
rating: 4.50 (144 reviews)
github: https://github.com/googleworkspace/cli
---

# recipe-share-folder-with-team

> 将Google Drive文件夹及其所有内容共享给团队成员列表，方便团队协作，统一管理和访问项目文件。

**Stats**: 14,500 installs · 4.5/5 (144 reviews)

## Before / After 对比

### 批量共享云端文件夹，提升团队协作。

## Readme

# 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`



---
*Source: https://skills.yangsir.net/skill/ssh2-recipe-share-folder-with-team*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh2-recipe-share-folder-with-team/markdown*