Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/drive-supportsAllDrives-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@googleworkspace/cli": patch
---

Add Shared Drives tip to gws-drive skill doc explaining supportsAllDrives usage
14 changes: 14 additions & 0 deletions skills/gws-drive/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,17 @@ gws schema drive.<resource>.<method>

Use `gws schema` output to build your `--params` and `--json` flags.

## Shared Drives

Most `files` and `permissions` methods only search **My Drive** by default.
To include Shared Drive content, pass `supportsAllDrives: true` in `--params`:

```bash
# list files in a shared drive
gws drive files list --params '{"corpora": "drive", "driveId": "DRIVE_ID", "supportsAllDrives": true, "includeItemsFromAllDrives": true}'

# get a file that lives in a shared drive
gws drive files get --params '{"fileId": "FILE_ID", "supportsAllDrives": true}'
```

If a file or folder isn't found, ensure your request includes all necessary parameters for Shared Drive access (e.g., `supportsAllDrives: true`, `includeItemsFromAllDrives: true`).