Original skill document
Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.
Create and Configure a Shared Drive
PREREQUISITE: Load the following skills to execute this recipe: gws-driveCreate a Google Shared Drive and add members with appropriate roles.
Steps
- Create shared drive:
gws drive drives create --params '{"requestId": "unique-id-123"}' --json '{"name": "Project X"}' - Add a member:
gws drive permissions create --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}' --json '{"role": "writer", "type": "user", "emailAddress": "member@company.com"}' - List members:
gws drive permissions list --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}'

