Use cases → Documents and Drive
Bulk migrate Drive files between Workspace users
Reassign ownership and transfer content at scale across user accounts using a delegated service account.
| Who it is for | IT admins handling leavers, mergers, or department restructures. |
|---|---|
| APIs | Drive API |
| Typical scopes | drive |
The problem
Manual migration doesn't scale: content is missed, permissions break, and shared drives add complexity. Automation is required to ensure nothing is left behind when users leave or teams change.
How it works
- List all files owned by the source user using the Drive API with impersonation.
- For My Drive files, use the 'files.update' endpoint to transfer ownership to the target user.
- For content in shared drives, update membership or move files if the target user has access.
- Move or copy any orphaned files and adjust permissions as needed.
- Log each action, tracking files that fail to transfer for manual review.
What changes
User data is moved comprehensively, with clear logs of what was and was not transferred, reducing manual intervention and lost documents.
Watch it explained
“Google Workspace | Use the transfer tool for unmanaged users | Google Workspace Admin Training” — The Cloud Nerd on YouTube. Third-party video, included because it covers this ground well. We are not affiliated with the channel.
Questions people ask
Does this work for both My Drive and shared drives?
Yes, but the mechanisms differ. My Drive files can be reassigned; shared drive content typically requires changing membership or moving files, subject to drive permissions.
What happens to file sharing permissions?
File-level sharing is preserved, but folder-level sharing may need to be rebuilt if the folder moves or is recreated under a new user.
Want this built?
This is a pattern we run in production. We will set up the delegation and build this on top of it — $500 per hour, most of it working the same day.
Talk to us Or read the setup guideRelated use cases
Create a client folder structure the moment a deal closes
Provision a consistent Drive folder tree, seeded with templates and shared with the right people, automatically.
Generate documents from a template and real data
Produce agreements, letters and reports from a Docs template with fields filled from your systems.
Sort incoming files into the right place automatically
Watch a drop folder, work out what each file is, and file it where it belongs with a consistent name.