Google Workspace to Microsoft 365 Migration Guide
Migrate Gmail, Google Drive, Google Calendar, and Google Contacts from Google Workspace (formerly G Suite) to Microsoft 365. This is a cross-platform migration — the source APIs, authentication model, and data formats all differ from Exchange migrations.
Prerequisites
Google Workspace (source)
- Super Administrator role in Google Workspace Admin console
- A Google Cloud project with the following APIs enabled: Gmail API, Google Drive API, Google Calendar API, People API
- A service account with domain-wide delegation configured (see Step 1)
- Google Workspace Business Starter, Business Standard, Business Plus, or Enterprise
Microsoft 365 (destination)
- Global Administrator role
- Exchange Online Plan 1 or Plan 2 licences assigned to target users
- Destination mailboxes pre-created (via Azure AD, manual creation, or bulk import)
- Microsoft 365 licence with OneDrive for Business if migrating Drive files
General
- Source Google user emails and destination Microsoft 365 UPNs — Aatrex will auto-match by username, but a mapping file is recommended for domain-change scenarios
- HTTPS access to
gmail.googleapis.com,www.googleapis.com, andgraph.microsoft.comfrom the Aatrex host
Step 1: Set Up a Google Cloud Project and Service Account
Google Workspace requires a service account with domain-wide delegation — this allows Aatrex to act on behalf of all users without requiring each user's credentials.
Create a Google Cloud Project
- Sign in to console.cloud.google.com with your Google Workspace Super Admin account.
- Click Select a project → New Project.
- Name it
Aatrex Migrationand click Create.
Enable Required APIs
- In the project, go to APIs & Services → Library.
- Search for and enable each of the following APIs:
- Gmail API
- Google Drive API
- Google Calendar API
- People API (for Contacts)
Create a Service Account
- Go to APIs & Services → Credentials → Create credentials → Service account.
- Name it
aatrex-migrationand click Create and continue. - Skip the optional role and user access steps. Click Done.
- Click the service account in the list, then go to the Keys tab.
- Click Add key → Create new key → JSON. A JSON key file downloads automatically.
- Store this file securely — you will upload it to Aatrex. It cannot be downloaded again.
Grant Domain-Wide Delegation
- Still on the service account page, go to the Details tab and copy the Client ID (a long numeric string).
- In a new tab, sign in to admin.google.com as a Super Admin.
- Go to Security → Access and data control → API controls → Manage domain-wide delegation.
- Click Add new and enter:
- Client ID: the service account Client ID from step 12
- OAuth scopes:
Aatrex only reads from the source, and asks for exactly these scopes — Google refuses a sign-in that asks for a scope that isn't on the list.https://www.googleapis.com/auth/gmail.readonly, https://www.googleapis.com/auth/calendar.readonly, https://www.googleapis.com/auth/contacts.readonly, https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly
- Click Authorise.
Step 2: Register an App in the Destination Tenant (Microsoft 365)
- Sign in to portal.azure.com as a Global Administrator on the Microsoft 365 destination tenant.
- Go to Azure Active Directory → App registrations → New registration.
- Name it
Aatrex GW Destinationand click Register. - Copy the Application (client) ID and Directory (tenant) ID.
- Generate a Client secret and copy the value.
- Add the following Application permissions under Microsoft Graph:
| Permission | Why it is needed |
|---|---|
Contacts.ReadWrite | Import Google Contacts |
Files.ReadWrite.All, Sites.ReadWrite.All | Upload Google Drive files to OneDrive and shared drives to SharePoint |
Group.ReadWrite.All | Create a SharePoint site (Microsoft 365 group) for each Google shared drive |
User.Read.All | Resolve destination users |
Also add the Graph mailbox permissions MailboxItem.ImportExport.All and MailboxFolder.ReadWrite.All: mail is written through the Microsoft Graph mailbox API. Calendar events are created without attendees, so nobody is sent an invitation; the organizer and attendees are listed in each event's description.
- Click Grant admin consent and confirm all permissions show Granted.
Step 3: Create a Migration Project
- In Aatrex, click Projects → Create Project.
- Select Google Workspace to Microsoft 365 as the migration type.
- Enter a project name, the source Google Workspace domain, and the destination Microsoft 365 tenant domain.
- On the Source credentials step:
- Authentication type: Select Service Account JSON
- Upload JSON key: Click Browse and upload the JSON key file downloaded in Step 1
- Admin email: Enter a Google Workspace Super Admin email address (used as the impersonation account)
- On the Destination credentials step, paste the App ID, Tenant ID, and Client Secret from Step 2.
- Click Test Connection → Save Project.
Step 4: Discover Google Workspace Users
- Open your project and click Scan → Discover Users.
- Aatrex queries the Google Directory API to enumerate all active users in your Workspace domain.
- The user list shows each user's Gmail address, Display name, Gmail storage used, and Drive storage used.
- Suspended or archived Workspace users are excluded from discovery by default.
Step 5: Map Source to Destination Users
- Click Auto Map — Aatrex matches users where the username (before
@) is the same in both tenants. - For users whose email address differs between Google and Microsoft 365 (e.g. because of a domain change or name difference), click the user row and set the Destination UPN manually.
- Upload a CSV via Scan → Import CSV if you have a pre-prepared mapping file.
Step 6: What each run moves
- Mailbox (one run per user): Gmail, calendars and contacts together.
- Gmail labels follow the project's label option: Labels → Folders (a message goes to its first label's folder; Inbox, Sent and the like win), Labels → Categories (mail stays in Inbox/Sent; labels become categories) or Duplicate per label (one copy in each label's folder).
- Calendars: every calendar the user owns, with recurring series in their time zone, changed and cancelled occurrences, attendees and reminders. No invitations or cancellations are sent. A meeting someone else organised arrives as an entry that lists its organizer and attendees — Exchange makes the mailbox the organizer of anything created in it.
- Contacts, with their labels as categories.
- Calendar and contacts can be switched off per project or per user.
- Drives tab: Google Drive → OneDrive. SharePoint tab: Google shared drives → SharePoint sites.
Step 7: Start the Migration
- Select users and click Migrate.
- Run it again as often as you like until cutover: each run copies only what's new or changed, and replaces earlier copies of changed events and contacts instead of duplicating them.
Google Docs conversion note: Google Docs are converted to
.docx, Sheets to.xlsx, and Slides to.pptxduring migration. Some formatting may change — complex Docs with advanced features should be tested before cutover.
Step 8: Monitor Progress
- Each user's row shows one status for mail, calendars and contacts; drives have their own on the Drives tab.
- A message, event or contact that fails is listed with its reason and retried on the next run, without repeating what was already copied.
Step 9: Post-Migration Verification
- Sign in to Outlook on the Web for a migrated user and verify:
- Inbox contains recent Gmail messages.
- Custom folders appear for Gmail labels.
- Calendar shows upcoming and past events.
- People shows contacts.
- Sign in to OneDrive Web and verify Drive files are present, including converted Office files.
- Open a converted Google Doc in Word Online and check formatting is acceptable.
- Run the migration once more immediately before MX cutover to pick up mail received in the meantime.
Common Issues
"Domain-wide delegation not configured" error The Google Workspace admin has not added the service account Client ID to the domain-wide delegation allowlist, or the OAuth scopes entered were incorrect. Verify the exact scope strings in the Admin console and retry.
Discovery returns 0 users The admin email entered as the impersonation account in Step 3 may not have Super Admin rights, or the People API / Directory API may not be enabled in the Google Cloud project. Enable the Admin SDK Directory API in the Google Cloud console.
Gmail labels not appearing as folders
Check the project's label option: with Labels → Categories, labels become categories and mail stays in Inbox. Nested labels (Clients/Acme) become nested folders.
An event failed with "Exchange can't hold this event's recurrence" A few Google rules (for example "the last weekday of the month", which uses BYSETPOS) have no Exchange equivalent. The event is listed as failed with its Google rule; recreate it in Outlook.
Google Drive files failing to convert Very large Google Docs (over 10 MB uncompressed) cannot be converted via the Drive API export endpoint. These fail with the reason "larger than its 10 MB export limit". Download and convert them manually before cutover.
A meeting shows no attendees It was organised by someone else: the user's copy lists the organizer and attendees in its notes. The organizer's own copy (when they are migrated too) has the attendees.