audit_shortcuts
Identify Google Drive shortcuts in a source folder that will break after migration, by checking if their targets will be in the Shared Drive. Outputs results to a Google Sheet.
Instructions
Step 9 — Identify Google Drive shortcuts.
Shortcuts pointing to files outside the migration scope will break
after the move since they reference the original file's location.
shortcutDetails returns the targetId and targetMimeType so you can
determine whether the target will also be in the Shared Drive
post-migration.
Args:
user_email: The email of the user who owns the source folder.
folder_id: The ID of the source folder.
sheet_id: The ID of the Google Sheet for output.
sheet_name: The tab name (default: "shortcuts").
GAM command:
gam user <user_email> print filelist select <folder_id>
showmimetype gshortcut
fields "id,name,shortcutDetails,parents,owners"
filepath excludetrashed
todrive tdfileid <sheet_id> tdsheet "<sheet_name>"
tdupdatesheet tdretaintitle
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet_id | Yes | ||
| folder_id | Yes | ||
| sheet_name | No | shortcuts | |
| user_email | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |