Migrate from Google Workspace to Microsoft 365
Tags: googlecloud, workspace, m365, microsoft365
Published: 2021-12-31 07:06:57

If you are thinking of migrating from Google Workspace to Microsoft 365, you can follow the simple steps below to migrate emails, contacts, and calendars from Google Workspace to Microsoft 365 mailboxes without any disconnection.

**What to do?**
1. Google Workspace administrator credentials
2. Administrator access to Office 365
3. Access to DNS management
4. Azure AD account for user migration

**Try a Proven Tool for Instant Migration:**
_The manual method is lengthy and complicated. So, the administrators can opt for a professional tool as an alternative. You can get the professional solution here – **[G Suite to Office 365 Migration](https://www.systoolsgroup.com/google-apps-to-office-365/)**. The tool provides a much simpler process for migration of emails, contacts, calendars, docs all at once. Give its free version (allows migration of 2 accounts) a try._

## How to migrate from Google Workspace to Microsoft 365?

### 1. Create a Google Workspace service account
Open https://console.developers.google.com/

![1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/shw8spg3z1vy4za9g15o.png)
In the dropdown list, create a new project

Click on Credentials-> Create Credentials, then click on service account from the dropdown menu.

![2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1xzfq5mhcytgw07hk4l7.png)
Enter a name and description for the service account, then click CREATE

![3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0ndagewbauqxe2ycabog.png)
Leave everything as it is in the next step and press Continue.

Now click on “+ CREATE KEY” option and select JSON as the key type.

![4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oi6lckevh2hrknf5qc9t.png)
The key in JSON file format will be downloaded to your computer. Keep it safe and don't share it with anyone as we will use it later.

Record client_id from downloaded file

![5](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iq51tcoj22m5vrhfe3sq.png)
You will need this customer ID later.
You will also need this JSON file. 

### 2. Allow access to the mail, calendar, and contact API of the service account you created
Go to https://admin.google.com/

Click on **Security **from the dashboard

![6](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eo2ov282dfwsh1hp1yu5.png)
Expand Advanced Settings and click the Manage API Client Access link.

In "Client Name", enter the client_id obtained from the service account file and add the scope below

![7](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/454yne79onwwud3eebiu.png)
 
- https://mail.google.com/
- https://www.googleapis.com/auth/calendar
- https://www.google.com/m8/feeds/
- https://www.googleapis.com/ auth / gmail.settings.sharing
- https://www.googleapis.com/auth/drive
You should see that these ranges have been added to this client ID

### 3. Create a subdomain alias
Go to https://admin.google.com/ac/domains or expand the side menu, you can access it from the Domains extension account

Choose a hosted domain

Click Add domain alias and give it a name, then press Continue and verify domain ownership

![8](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nrsxbpezqm077smnqc37.png)
Now, in the "Domain Verification" section, you will get the TXT record that needs to be added to the primary domain from the DNS management.

To do this, go to the DNS management section of the primary domain from the domain provider (like Godaddy.)

![9](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p5n13lsekprdxxnl678c.png)
Then press the "Save" button. It takes about 10 minutes to propagate this setting. Note that depending on the TTL setting, this propagation can take a long time.

Click VERIFY in the Google admin DNS verification section.

![10](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pu89lerqhhr072y1vtaa.png)
We recommend that you use this method to verify the domain. If that doesn't work, try the alternative method from the "Alternative Methods" tab and follow the instructions.

![11](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qsasgxo20zw4jyxurunt.png)
 
You will now see the domain alias you created in the managed domains list. Select "Ignore Google MX settings" from the domain alias, then select "I use another mail server"

![12](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yv0a5r2j0k1m645mi246.png)
You just have to configure it on the GOOGLE WORKSPACE side. Now let's set up in MICROSOFT's 365 management center
 

### 4. Configure MX records for domain aliases in the MICROSOFT domain configuration.
Go to https://admin.microsoft.com/

Click "Settings >> Domains"

![13](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nvyfxpmm7mbi80qw41je.png)
Click on + Add domain and enter the same subdomain that you used as your primary domain alias in the Google Workspace domain settings.

![14](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qdqte95vpil7mzavmgm.png)
Select this option - I’ll add the DNS records myself.

![15](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rawrfa27b1p31jxhsgxe.png)
Choose Exchange

The MX Records are now available. Now, we will configure the MX record in the subdomain. Refer the image:

![16](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uu9eb0ysbh9mbfe2t7m8.png)
Make sure you add the subdomain alias instead of @ in the host section.

If your primary email address is misconfigured, this is a crucial part.

Note that depending on the TTL setting, this propagation can take a long time.

After verification, we can now start the process to migrate from Google Workspace to Microsoft 365 mailbox

### 5. Mailbox settings
Before synchronizing emails, calendars and contacts, you will need the mailboxes provided by the Exchange Management Center for all AD users.

Go to Exchange Administration from https://admin.microsoft.com Administration Center or go to https://admin.exchange.microsoft.com/

![17](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ohl0raltt9n7mr0uh9k.png)
Go to your mailbox settings

![18](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fg64c1hpl6g2emq2hxif.png)
 
Create a mailbox for each user you want to migrate from Google Workspace to Microsoft 365.

When you create a mailbox, be sure to select the same subdomain you created and add your MX records to it.

![19](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4zi3qbfvgn7ber5yxwsh.png)
 

### 6. CSV file
Now what you need to do is to create a CSV file that contains EmailAddress and Username. The format of the CSV file must be the following.

![20](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ouopk34qj1hupef5q5d.png)
In this case, EmailAddress is the user's email address in Exchange admin, and Username is the Google Workspace email address.

### 7. Start the migration
Go to Exchange Administration from https://admin.microsoft.com Administration Center or go to https://admin.exchange.microsoft.com/

Go to Migration -> Batch

![21](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0bq5qh9qthsc50al6khy.png)
Create a new migration batch

![22](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s36j5qzz55jrwtrjhnk2.png)
Enter the name of the migration batch and click Next

![23](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h559l5afsgch56x5pbks.png)
Select the type of migration, G Suite (Gmail migration), then click Next

![24](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dwk7p9xqvehimo8wg9c.png)
Since we've already covered the prerequisites in the previous steps, click Next in the G Suite prerequisites section.

![25](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5c56784tq34094d7k8n8.png)
Create a new migration endpoint

![26](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h2d483dxso666uneq9nw.png)
Name the migration endpoint as a subdomain

![27](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lw1iw7kckm23qspfsg1f.png)
Here, "maximum concurrent migration" refers to the maximum concurrent number of mailbox transfers, and "maximum concurrent incremental synchronization" refers to the maximum number of mailboxes with incremental content synchronization.

This is the default and you can set it as your choice based on the number of mailboxes to migrate.

Click Next.

Configure Gmail Migration

![28](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7gg48bj81r0ngn031bn3.png)
Here, specify an email address with super administrator access to the Google Workspace organization and import the JSON file.

This JSON file is downloaded when setting up a service account on GOOGLE WORKSPACE.

Add user's mailbox

Here, you need to import the csv file created in the previous step.

![29](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fcz7otsko4fskqm3vzes.png)
Move configuration. Here, set the target delivery domain as a subdomain. It will show itself in the drop-down list.

![30](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gox9z0h6z7lxvg94tugj.png)
Schedule the batch migration based on your preferences. You must select a recipient from the mailbox to receive the report.

![31](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1kzujy5j2eipxchxpfeh.png)
Press Save and the migration will start based on the migration batch startup configuration.

You can check the synchronization of your emails by logging into your email account username@yoursubdomain.com from https://outlook.office365.com/

Now, when all your mailboxes on Office 365 have been synced and you want to transfer all your primary email addresses from Google Workspace to Microsoft 365, all you need to do is
- As we specified for the subdomain, create the main/primary domain via the exchange admin
- Replace the MX record of the main domain
- Perform domain Verification
- Click each mailbox on the Exchange mailbox

![32](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wt74fz8w5ou0orsgfk4e.png)
Then from "Manage Email Address Types", change the subdomain record to the primary domain.

This completes the process to migrate from Google Workspace to Microsoft 365. The IT administrators can choose whichever process, this one, or the professional tool given in the link as per their choice.

**My Other Post:**
- [Step by Step Migrate Office 365 to G Suite](https://dev.to/stefan04391265/how-to-migrate-office-365-to-g-suite-step-by-step-process-1a)