↓ Skip to main content
  1. Posts/

How to Set Up Migration of Google Workspace into Microsoft Office 365 the Manual Way and When the Automated Process Fails

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
#

  1. Open a browser and go directly to console.cloud.google.com, then sign in with your Google Workspace Super Admin account.
  2. In the top-left header bar (to the right of the “Google Cloud” logo), click the Project selector dropdown.
  3. In the pop-up window, click New Project in the top-right corner.
  4. Fill out the form:
    • Project name: Type M365-Migration (or any simple label).
    • Organization: Leave as your default organization.
    • Location: Leave as default.
  5. Click Create. Wait a few seconds, then click the Project selector dropdown in the top-left bar again and select M365-Migration so it is active.

2. Fix the “Disable Service Account Key Creation” Block (Why JSON Fails to Download)
#

  1. 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.
  2. Switch back to project M365-Migration using the top-left project dropdown.
  3. Click the Navigation menu (☰) > IAM & Admin > Organization policies.
  4. In the Filter bar above the table, type Disable service account key creation and press Enter.
  5. Click on the policy named Disable service account key creation (iam.managed.disableServiceAccountKeyCreation).
  6. 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.
  7. Click Set policy at the bottom. (Note: Also search for iam.disableServiceAccountKeyCreation in the Organization policies list and set it to Not enforced if it appears.)

3. Create the Service Account & Download the .json File
#

  1. Click the Navigation menu (☰) > IAM & Admin > Service Accounts.
  2. Click + Create service account at the top.
  3. 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.
  4. 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.
  5. Back on the Service accounts table, click directly on the email link [email protected].
  6. 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.
  7. Click the Keys tab near the top of the page.
  8. Click Add key > Create new key.
  9. Select JSON and click Create.
  10. Your browser immediately downloads the .json file to your Downloads folder. Click Close on the pop-up.

4. Enable the 3 Required Google APIs
#

  1. Click the Navigation menu (☰) in the top-left corner > APIs & Services > Library.
  2. In the search bar, type Gmail API, click it in the results, and click the blue Enable button.
  3. Click APIs & Services in the left sidebar > Library, search for Google Calendar API, click it, and click Enable.
  4. Go back to Library, search for Contacts API (and People API if shown), click it, and click Enable.

Phase 2: Google Workspace Admin Console (Domain-Wide Delegation)
#

  1. Open admin.google.com and sign in with your Google Workspace Super Admin account.
  2. In the left sidebar, click Security > Access and data control > API controls.
  3. Scroll to the very bottom of the page and under Domain wide delegation, click Manage Domain Wide Delegation.
  4. Click Add new at the top of the API clients table.
  5. 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
  6. 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
#

  1. 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.
  2. Open Notepad on your computer and create a plain text file formatted like this:
  3. 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
#

  1. Open admin.exchange.microsoft.com > in the left menu, click Migration.
  2. Click Add migration batch at the top.
  3. Migration path:
    • Give the migration batch a unique name: Type Batch1.
    • Select the mailbox migration path: Select Migration to Exchange Online > click Next.
  4. Migration type:
    • Select Google Workspace (Gmail) migration > click Next.
  5. Prerequisite:
    • Select Manual (do not choose Automated) > click Next.
  6. Information (checklist screen):
    • Do not change anything—just click Next.
  7. 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.
  8. 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 .json file 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
#

  1. Add users: Click Import CSV file, select users.csv, verify the user count matches, and click Next.
  2. Move configuration:
    • Target delivery domain: Select your domain from the dropdown (yourdomain.onmicrosoft.com if listed, otherwise select yourdomain.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.
  3. 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
#

  1. Wait for Synced: Watch the batch in Exchange Admin Center > Migration until Status changes from Syncing to Synced for all users.
  2. 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.
  3. Have Users Switch to Outlook: Have your team log in to outlook.office.com and send/receive all new emails from Microsoft 365.
  4. 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.
  5. Security Cleanup: Delete the .json file from your computer and delete the key inside Google Cloud Console > IAM & Admin > Service Accounts > migration@... > Keys.

⚓

Sanjay Regmi
Author
Sanjay Regmi