recipe-create-shared-drive

Creates a Google Shared Drive and adds members with assigned roles via gws CLI.

Updated Nov 9, 2023
One-click install
npx skills add https://github.com/oresttokovenko/dot-files --skill recipe-create-shared-drive-oresttokovenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recipe-create-shared-drive
Source: https://github.com/oresttokovenko/dot-files/tree/main/chezmoi/dot_agents/skills/recipe-create-shared-drive
Command: npx skills add https://github.com/oresttokovenko/dot-files --skill recipe-create-shared-drive-oresttokovenko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up a Google Shared Drive for a team involves multiple API calls to create the drive, assign members, and verify permissions. This Skill provides a ready-made recipe that walks through the exact gws CLI commands needed to complete the setup in one guided flow. ## Core Features & Use Cases - Shared Drive Creation: Creates a new Google Shared Drive with a unique request ID using the Google Drive API via gws. - Member Management: Adds members to the drive with specific roles such as writer, using their email addresses. - Permission Verification: Lists all current members and their roles on the drive to confirm the configuration. - Use Case: A project lead needs a shared workspace for a new initiative. Run this recipe to create the "Project X" Shared Drive, add team members as writers, and verify access in minutes. ## Quick Start Create a Google Shared Drive named Project X and add [email protected] as a writer, then list the drive members to confirm.

Frequently Asked Questions about recipe-create-shared-drive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Google Shared Drive from the command line?

Use the gws CLI with the drive drives create command, passing a unique requestId as a parameter and the drive name in the JSON body. This recipe provides the exact command sequence including member setup.

How to add members to a Google Shared Drive with specific roles?

Use gws drive permissions create with the drive ID as fileId, supportsAllDrives set to true, and a JSON body specifying the role, type, and emailAddress. Roles such as writer can be assigned per member.

What prerequisites are needed to run this Shared Drive recipe?

You need the gws binary installed and the gws-drive skill loaded before executing this recipe. The gws CLI handles authentication and communication with the Google Drive API.

How can I verify who has access to a Google Shared Drive?

Run gws drive permissions list with the drive ID as fileId and supportsAllDrives set to true. This returns all current members and their assigned roles on the drive.

Why does Shared Drive creation fail with a duplicate request error?

The requestId parameter must be unique for each creation request to ensure idempotency. Reusing the same requestId returns the previously created drive instead of making a new one, so generate a fresh ID per drive.