It is supposed to be easy to migrate Google Workspace into Office 365 using the migration tool available in Exchange Admin Center. One of the key parts of migration is for Office to hook up with Google Workspace. Microsoft provides two ways: automated and manual. Automated is supposed to work but sometimes it doesn’t because the JSON file never downloads, no matter how many times you try or clean the access and try again. And then you’re only left with the manual process.
The manual process is a small nightmare. One has to go through the vast sea of the Google Console, stitch together a bunch of steps, poke into different parts and you can easily get lost or spend a lot of time, even with the help of LLMs! Hopefully recursion will come to the rescue soon and LLMs could actually help, but until then here are the steps with quite some detail so you don’t miss anything.
Phase 1: Google Cloud Console (Create Project, Fix JSON Policy & Download Key) #
1. Create the Google Cloud Project #
- Open a browser and go directly to
console.cloud.google.com, then sign in with your Google Workspace Super Admin account. - In the top-left header bar (to the right of the “Google Cloud” logo), click the Project selector dropdown.
- In the pop-up window, click New Project in the top-right corner.
- Fill out the form:
- Project name: Type
M365-Migration(or any simple label). - Organization: Leave as your default organization.
- Location: Leave as default.
- Project name: Type
- Click Create. Wait a few seconds, then click the Project selector dropdown in the top-left bar again and select
M365-Migrationso it is active.
2. Fix the “Disable Service Account Key Creation” Block (Why JSON Fails to Download) #
- Click the Navigation menu (☰) in the top-left corner > hover over IAM & Admin > click IAM.
- Check your role: Find your admin email in the list and verify you have Organization Policy Administrator.
- If missing: Click the Project selector dropdown at the top, select your top-level organization (building icon), go to IAM & Admin > IAM, click Grant Access, enter your email, select the role Organization Policy Administrator, and click Save.
- Switch back to project
M365-Migrationusing the top-left project dropdown. - Click the Navigation menu (☰) > IAM & Admin > Organization policies.
- In the Filter bar above the table, type
Disable service account key creationand press Enter. - Click on the policy named Disable service account key creation (
iam.managed.disableServiceAccountKeyCreation). - Click Manage policy at the top of the screen:
- Applies to / Policy source: Select Override parent’s policy.
- Policy enforcement: Select Replace parent.
- Rules: Click Edit (or Add a rule) > set Enforcement to Off (or Not enforced) > click Done.
- Condition: Leave completely blank.
- Click Set policy at the bottom. (Note: Also search for
iam.disableServiceAccountKeyCreationin the Organization policies list and set it to Not enforced if it appears.)
3. Create the Service Account & Download the .json File
#
- Click the Navigation menu (☰) > IAM & Admin > Service Accounts.
- Click + Create service account at the top.
- Fill out Step 1 (Service account details):
- Service account name: Type
migration. - Service account ID: Leave auto-filled.
- Service account description: Leave blank.
- Click Create and continue.
- Service account name: Type
- Skip Step 2 (Grant this service account access to project) and Step 3 (Grant users access):
- Do not fill anything out in Steps 2 or 3—just click Done at the bottom.
- Back on the Service accounts table, click directly on the email link
[email protected]. - On the Details tab (the screen that opens), scroll down slightly, find Unique ID (or OAuth 2 Client ID—a 21-digit number), and copy/save that 21-digit number.
- Click the Keys tab near the top of the page.
- Click Add key > Create new key.
- Select JSON and click Create.
- Your browser immediately downloads the
.jsonfile to your Downloads folder. Click Close on the pop-up.
4. Enable the 3 Required Google APIs #
- Click the Navigation menu (☰) in the top-left corner > APIs & Services > Library.
- In the search bar, type
Gmail API, click it in the results, and click the blue Enable button. - Click APIs & Services in the left sidebar > Library, search for
Google Calendar API, click it, and click Enable. - Go back to Library, search for
Contacts API(andPeople APIif shown), click it, and click Enable.
Phase 2: Google Workspace Admin Console (Domain-Wide Delegation) #
- Open
admin.google.comand sign in with your Google Workspace Super Admin account. - In the left sidebar, click Security > Access and data control > API controls.
- Scroll to the very bottom of the page and under Domain wide delegation, click Manage Domain Wide Delegation.
- Click Add new at the top of the API clients table.
- Fill out the pop-up box:
- Client ID: Paste the 21-digit number you copied in Phase 1, Step 3.6.
- OAuth scopes (comma-delimited): Copy and paste this exact line (commas, zero spaces):
https://mail.google.com/,https://www.googleapis.com/auth/calendar,https://www.googleapis.com/auth/gmail.settings.sharing,https://www.googleapis.com/auth/contacts
- Click Authorize. Wait 10–15 minutes before starting Phase 3 so Google propagates the permissions.
Phase 3: Microsoft 365 & Exchange Admin Center (Manual Batch Setup) #
1. Prepare Users & CSV File #
- Open
admin.microsoft.com> Users > Active users and confirm every migrating user already exists with their custom domain ([email protected]) and an active Exchange Online license. - Open Notepad on your computer and create a plain text file formatted like this:
EmailAddress [email protected] [email protected] - Save it as
users.csv(choose All Files as the file type in Notepad so it does not save as.txt).
2. Configure the Manual Migration Endpoint #
- Open
admin.exchange.microsoft.com> in the left menu, click Migration. - Click Add migration batch at the top.
- Migration path:
- Give the migration batch a unique name: Type
Batch1. - Select the mailbox migration path: Select Migration to Exchange Online > click Next.
- Give the migration batch a unique name: Type
- Migration type:
- Select Google Workspace (Gmail) migration > click Next.
- Prerequisite:
- Select Manual (do not choose Automated) > click Next.
- Information (checklist screen):
- Do not change anything—just click Next.
- Migration endpoint:
- Select Create a new migration endpoint > click Next.
- Migration endpoint name: Type
GSuite-Endpoint. - Leave Maximum concurrent migrations and Maximum concurrent incremental syncs at their default values > click Next.
- Gmail migration configuration (CRITICAL STEP):
- Email address: Enter the email address of a regular licensed Google Workspace user who has an active Gmail mailbox (do NOT enter an unlicensed Super Admin email, or it will fail with “Unable to access mail account for this user”).
- Import JSON: Click Import JSON and select the
.jsonfile you downloaded in Phase 1. - Click Next and wait for the Status screen to show a green checkmark, then click Next.
3. Add Users, Configure & Start Sync #
- Add users: Click Import CSV file, select
users.csv, verify the user count matches, and click Next. - Move configuration:
- Target delivery domain: Select your domain from the dropdown (
yourdomain.onmicrosoft.comif listed, otherwise selectyourdomain.com). - Migration filtering options: Leave both checkboxes unchecked (leave folders and time range blank so everything migrates).
- Data checkboxes: Keep Mail, Calendar, Contacts, and Rules all checked > click Next.
- Target delivery domain: Select your domain from the dropdown (
- Schedule batch migration:
- Report recipients: Leave your admin email selected.
- Start the migration batch by: Select Automatically start the batch.
- End the migration batch by: Select Manually complete the migration batch later (do NOT select automatic completion).
- Select timezone: Pick your local timezone > click Save.
Phase 4: DNS Cutover & Final Cleanup #
- Wait for
Synced: Watch the batch in Exchange Admin Center > Migration until Status changes from Syncing to Synced for all users. - Switch DNS Records: Go to
admin.microsoft.com> Settings > Domains > yourdomain.com > DNS records, copy the MX, SPF (TXT), and Autodiscover (CNAME) records into your domain registrar/DNS host, and remove the old Google MX records. - Have Users Switch to Outlook: Have your team log in to
outlook.office.comand send/receive all new emails from Microsoft 365. - Finalize Batch (24–48 Hours Later): Return to Exchange Admin Center > Migration, click your batch, and click Complete this migration batch to sweep any final straggler emails from Google and lock the migration.
- Security Cleanup: Delete the
.jsonfile from your computer and delete the key inside Google Cloud Console > IAM & Admin > Service Accounts >migration@...> Keys.
⚓