drive_set_role
Change a person's access role (viewer, commenter, or editor) on an existing Google Drive file or folder; requires confirm=true to apply.
Instructions
Change the role of a person who already has access to a file or folder (Manage access).
Requires confirm=true (outward-facing or destructive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact item name in the current location (or in path). | |
| path | No | Folder holding the item ("/A/B" from My Drive, "A/B" relative); default: current. | |
| role | Yes | viewer, commenter or editor (commenter is only offered for files). | |
| Yes | E-mail address of the person (as listed by drive.sharing). | ||
| index | No | Index from the last drive.list / drive.search. | |
| confirm | No | Must be true: this action is outward-facing or destructive. | |
| occurrence | No | Which item when several share the name (0 = first). |