audit_post_migration_permissions
Audit a destination Shared Drive post-migration to confirm ACLs match pre-migration records, outputting results to a Google Sheet for verification.
Instructions
Step 15 — Post-migration permissions audit on the Shared Drive.
After reapplying permissions (steps 12–14), run this final audit
against the Shared Drive to confirm the ACLs match what was
recorded pre-migration. Compare this tab against the
all_permissions tab to verify correctness.
Args:
user_email: The admin email executing the command.
shared_drive_id: The ID of the destination Shared Drive.
sheet_id: The ID of the Google Sheet for output.
sheet_name: The tab name (default: "post_migration_permissions").
GAM command:
gam user <user_email> print filelist select <shared_drive_id>
fields "id,name,mimeType,basicpermissions,owners"
filepath excludetrashed oneitemperrow pmfilter
todrive tdfileid <sheet_id> tdsheet "<sheet_name>"
tdupdatesheet tdretaintitle
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet_id | Yes | ||
| sheet_name | No | post_migration_permissions | |
| user_email | Yes | ||
| shared_drive_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |