execute_migration_move
Recursively move a folder tree into a destination Shared Drive, merging duplicate folders and overwriting older duplicate files. Copies folder permissions for merged and newly created folders.
Instructions
Step 11 — Move the source folder tree to the Shared Drive.
DESTRUCTIVE — requires confirmed=True to execute.
Recursively moves the folder tree into the destination Shared Drive,
merging duplicate folders and overwriting older duplicate files.
Folder permissions are copied for both merged and newly created folders.
NOTE: Run ALL audit steps (1–10) before executing this step.
NOTE: CSV/todrive logging is not supported by `move drivefile`. To retain
a record of the move, redirect stdout/stderr to a log file at the shell
level, or run a `print filelist` audit step before and after migration.
Args:
user_email: The email of the folder owner (must be a Shared Drive
Manager/Organizer of the destination).
folder_id: The ID of the source folder.
shared_drive_id: The ID of the destination Shared Drive.
confirmed: Must be True to execute. False returns a preview.
GAM command:
gam user <user_email> move drivefile <folder_id>
teamdriveparentid <shared_drive_id>
duplicatefiles overwriteolder
duplicatefolders merge
copymergedtopfolderpermissions true
copymergedsubfolderpermissions true
summary
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | No | ||
| folder_id | Yes | ||
| user_email | Yes | ||
| shared_drive_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |