recipe-create-shared-drive

작성자: Google

Google 공유 드라이브를 만들고 적절한 역할을 가진 구성원을 추가합니다.

npx skills add https://github.com/googleworkspace/cli --skill recipe-create-shared-drive

Create and Configure a Shared Drive

PREREQUISITE: Load the following skills to execute this recipe: gws-drive

Create a Google Shared Drive and add members with appropriate roles.

Steps

  1. Create shared drive: gws drive drives create --params '{"requestId": "unique-id-123"}' --json '{"name": "Project X"}'
  2. Add a member: gws drive permissions create --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}' --json '{"role": "writer", "type": "user", "emailAddress": "[email protected]"}'
  3. List members: gws drive permissions list --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}'