recipe-share-folder-with-team
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseShare a Google Drive Folder with a Team
与团队共享Google Drive文件夹
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.
前提条件: 加载以下技能以执行此方案:gws-drive
与协作者列表共享Google Drive文件夹及其所有内容。
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
- 查找文件夹:
gws drive files list --params '{"q": "name = '\''Project X'\'' and mimeType = '\''application/vnd.google-apps.folder'\''"}' - 以编辑者身份共享:
gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "colleague@company.com"}' - 以查看者身份共享:
gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "stakeholder@company.com"}' - 验证权限:
gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table