Google Drive → OneDrive Migration Guide
Migrate Google Drive files, shared drives (Team Drives), and folder structure into Microsoft OneDrive for Business or SharePoint document libraries. Google Docs, Sheets, and Slides are converted to their Microsoft Office equivalents during migration.
Prerequisites
Source — Google Workspace
- Super Administrator role
- A Google Cloud project with the Drive API enabled
- A service account with domain-wide delegation (see Step 1)
Destination — Microsoft 365
- Global Administrator role
- SharePoint Online Plan 1 or Plan 2 licences (included in Microsoft 365 Business Standard and above)
- OneDrive sites must be pre-provisioned for all destination users before migration starts (see Step 2)
Step 1: Set Up Google Drive Source
1a. Create a Google Cloud Project
- Sign in to console.cloud.google.com as a Super Administrator.
- Click Select a project → New Project, name it
Aatrex Drive Source, and click Create. - Go to APIs & Services → Library and enable:
- Google Drive API
- Admin SDK API
1b. Create a Service Account
- Go to APIs & Services → Credentials → Create Credentials → Service account.
- Name it
aatrex-drive-sourceand click Create and Continue → Done. - Click the service account → Keys → Add Key → Create new key → JSON. Save the JSON file.
- Copy the Unique ID (numeric string) from the service account detail page.
1c. Grant Domain-Wide Delegation
- In the Google Admin console (admin.google.com), go to Security → Access and data control → API controls → Manage domain-wide delegation → Add new.
- Enter:
- Client ID: service account Unique ID
- OAuth Scopes:
https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly
- Click Authorise.
Step 2: Pre-Provision OneDrive Sites
OneDrive sites must exist before Aatrex can write files. Run the following in SharePoint Online Management Shell using a Global Administrator account:
# Connect to SharePoint Online
Connect-SPOService -Url https://yourtenant-admin.sharepoint.com
# Request OneDrive provisioning for all licensed users
$users = Get-SPOUser -Site https://yourtenant-my.sharepoint.com | Select -ExpandProperty LoginName
Request-SPOPersonalSite -UserEmails $users -NoWait
For large organisations, provisioning can take 24 hours. Check provisioning status in the Microsoft 365 admin centre: Users → Active users → select user → OneDrive tab.
Step 3: Register a Destination App in Microsoft 365
- Sign in to portal.azure.com as a Global Administrator.
- Go to Azure Active Directory → App registrations → New registration.
- Name it
Aatrex Drive Destinationand click Register. - Copy the Application (client) ID and Directory (tenant) ID.
- Go to Certificates & secrets → New client secret, copy the value.
- Go to API permissions → Add a permission → Microsoft Graph → Application permissions and add:
| Permission | Purpose |
|---|---|
Files.ReadWrite.All | Write files into OneDrive and SharePoint |
Sites.ReadWrite.All | Access SharePoint sites for shared drives |
User.Read.All | Resolve destination user UPNs |
- Click Grant admin consent for [tenant] and confirm all permissions show Granted.
Step 4: Create a Migration Project
- In Aatrex, click Projects → Create Project.
- Select Google Drive → OneDrive as the migration type.
- Source credentials: upload the Google service account JSON key file, then enter the Admin email (a Super Administrator UPN).
- Destination credentials: enter the M365 App ID, Tenant ID, and Client Secret.
- Click Test Connection → Save Project.
Step 5: Discover and Map
- Click Scan → Discover Users. Aatrex lists all Google Workspace users with their Drive storage usage.
- Click Auto Map to match source to destination by username.
- For Shared Drives (Team Drives): click Scan → Discover Shared Drives. Map each shared drive to a destination SharePoint site or a specific user's OneDrive.
Step 6: Start Migration
- Select users and click Migrate.
- Choose Full for the first pass, or Changed since for incremental delta passes.
- Click Start Migration and monitor progress in the Activity panel.
Tip: Run an initial full pass several days before cutover, then run delta passes (files changed or created since the last run) daily until cutover day.
Google to Microsoft File Conversions
| Google format | Migrated as |
|---|---|
| Google Docs | .docx (Microsoft Word) |
| Google Sheets | .xlsx (Microsoft Excel) |
| Google Slides | .pptx (Microsoft PowerPoint) |
| Google Forms, Sites, Maps, shortcuts | Not migrated (no file equivalent) |
| Google Drawings | .svg |
| All other files (PDF, images, video, etc.) | Copied as-is, no conversion |
Size limit: Google Docs files are converted during export. The Google Drive export API enforces a 10 MB limit per file after conversion. Files over this limit fail with the reason "larger than its 10 MB export limit". Download these manually from Google Drive before cutover. Google Docs version history can't be exported, so only the current version moves. See What Moves and What Doesn't for the full list.
Common Issues
Google API returns 403 — insufficientPermissions The service account does not have domain-wide delegation, or the delegation scopes are incomplete. Verify the scopes in the Google Admin console match exactly what is listed in Step 1c.
OneDrive site not found for user
The user's OneDrive site has not been provisioned. Run the Request-SPOPersonalSite command for that user and wait for provisioning to complete before retrying.
Files appear in wrong location
Google Drive uses a label-based folder model — a file can exist in multiple folders simultaneously. OneDrive uses a strict path model. When a file has multiple parent folders, Aatrex places it in the first parent folder and creates a shortcut (.url file) in the others. Review the migration log for files with the MultipleParents note.
M365 permissions errors writing to SharePoint
Confirm Sites.ReadWrite.All has admin consent. If the destination is a SharePoint site (for shared drives), also confirm the site exists and is not access-restricted by a site-level policy.