audit_shared_drive_members
Audit members of a Google Shared Drive, listing their roles and access levels, and output results to a Google Sheet for review.
Instructions
Step 10 — List existing Shared Drives and their members.
Confirms the destination Shared Drive exists and who has what level
of access. The migrating user must be a Manager on the Shared
Drive to move files into it.
Args:
user_email: The email of the admin user running the query.
sheet_id: The ID of the Google Sheet for output.
sheet_name: The tab name (default: "shared_drive_members").
GAM command:
gam user <user_email> print teamdriveacls
fields "id,name,role,type,emailAddress"
todrive tdfileid <sheet_id> tdsheet "<sheet_name>"
tdupdatesheet tdretaintitle
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_email": "<user_email>",
"sheet_id": "<sheet_id>"
},
"name": "audit_shared_drive_members"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet_id | Yes | ||
| sheet_name | No | shared_drive_members | |
| user_email | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |