Hello All,
Is there any option for drive migration for different tenant workspace, when migrating the data , I should preserve the same file id, version history , metadata, recreate the sharing permissions with the user mapping, is there any possibility for this?? and also I should need to automate the migration process, I have already looked up the whole internet , where some providers cost is too much… is there any other option??
HI, There’s a free way to keep the file IDs and version history: move the files through a shared drive instead of copying them.
- In the new (target) workspace, create a shared drive and add a user from the old workspace as a Manager. Both admins need to allow sharing with the other domain, and the shared drive needs “allow people outside the organisation” turned on.
- In the old workspace’s Admin console, turn on Apps > Google Workspace > Drive and Docs > Migration settings > “Allow users to migrate files to shared drives” (or do the move as a super admin).
- Move (not copy) the files into that shared drive. A move keeps the file ID, so existing links keep working, and the version history comes with it.
You can automate it with the Drive API: files.update with addParents / removeParents and supportsAllDrives=true, from Apps Script or anything else.
Catches:
- Folders aren’t really moved, they get recreated, so folder IDs and links change. Only file IDs survive.
- Check the sharing after the move. If anything’s missing, recreate it with permissions.create from your user map, with sendNotificationEmail=false so people don’t get spammed.
- Shared drives cap out at 400,000 items, and you can only move files the old workspace owns.
Test it on a small folder first. Good write-up of the method here: Moving Google Files to another Domain via Shared Drives