This guide provides the process and information necessary to migrate an instance of Microsoft 365 GCC High (US Government) to G Suite (Gmail API) or G Suite (Gmail IMAP)
MigrationWiz
MigrationWiz is a migration tool, not a syncing tool. If changes are made at the source after migration, they will not sync to the destination, nor will changes made at the destination sync to the source. We do not have “live” monitoring of changes (as with a sync agent) and we cannot handle scenarios such as conflict resolution without user interaction.
First time?
If this is your first time performing a migration, we have created a Migration Planning & Strategy Guide to walk you through planning, set-up, and general migration best practices.
Prerequisites
Licensing
We recommend that you purchase User Migration Bundle licenses for this migration scenario. User Migration Bundle licenses allow the performance of multiple migrations with a single license. For questions on licensing, visit MigrationWiz Licenses.
To use your license by following the next steps:
- Purchase Licenses.
- Create a Customer.
- Apply Licenses.
- Review Considerations.
Purchase licenses by following the steps below:
- Sign in to your BitTitan account.
- In the top navigation bar, click Purchase.
- Click the Select button and choose User Migration Bundle licenses.
- Enter the number of licenses you want to purchase. Click Buy Now.
- Enter a Billing address if applicable.
- Click Next.
- Review the Order Summary and enter a payment method.
- Click Place Your Order.
Create Customer on MSPComplete by performing these steps:
- Click the Add button in the top navigation bar
- Click the Add Customer button on the All Customers page
- Select the appropriate workgroup in the left navigation pane and click All Customers.
- Click Add Customer.
- Enter the new customer’s information in the Add Customer form. Primary Email Domain and Company Name are required. The rest are optional.
- Click Save.
- Repeat steps 1 through 4 for each customer you want to add.
Perform these steps on MSPComplete:
- Select the correct workgroup on the top of the left navigation pane.
Important
This is the workgroup which the customer and migration projects were created under. Your account must be part of the workgroup if the project was not created under your account. - Click Customers on the left navigation pane.
- Click the customer that employs the user to whom you want to use the User Migration Bundle license.
- Click the Users tab at the top of the page.
- Apply the license to the users by checking the box to the left of their emails.
- Click the Apply User Migration Bundle License button at the top of the page.
Tip
We recommend adding users to the Customer page with the vanity domain. Then apply the User Migration Bundle Licenses, before editing to show the .onmicrosoft domain, if the .onmicrosoft domain will be used for the migration. - Click Confirm if at least one unassigned User Migration Bundle license is available for each selected user.
Important
If there are no User Migration Bundle licenses currently available to be assigned and your role in the workgroup is Manager or higher, the form that appears provides all the necessary information and will walk you through the steps of purchasing User Migration Bundle licenses.
Licenses are released once payment has been received:
- Licenses are available immediately upon payment if you purchase via credit card.
- If you purchase via wire transfer (100+ licenses), the licenses will be available once payment is received and accepted.
- We do not accept purchase orders because of processing overhead.
In both cases, you will be notified by email that payment has been accepted and licenses are available in your account upon notification.
For more information on licensing, including coupon redemption and other licensing types, see our Licensing FAQ.
Limitations
- App password usage, MFA/2FA, and ADFS are not supported for the migration admin account/service account being used by this endpoint.
- The maximum size of a single email message according to Google is 25 MB, including all attachments. Please note that the process of adding a file to a message increases its size (by adding encoding necessary for transmission).
- Exchange Web Services (EWS) must be enabled for the mailboxes in the Exchange Online tenant for this migration type.
Migrated Items
Please click the bars below to check the migrated and non-migrated items. We are constantly working to create a better migration experience for you so these items may change over time.
- Inbox
- Folders/Labels
- Muted Email (as regular email)
- Contacts
- Calendars (including links for Google Hangouts within calendar meetings)
- Calendar Notifications
- Server-side mailbox rules
- Client-side mailbox rules for Outlook
- Automatic Replies (Out of Office Messages)
Important
It is recommended that only Automatic Replies be migrated in the last migration pass for the user. - Calendar Permissions
- Safe Sender/Block Lists
- Calendar Reminders
- Calendar acceptance status emails
- Appointments
- Chat message attachments
- Calendar Attachments
- Exceptions of recurring appointments
Please visit the MigrationWiz: Migrated and Not Migrated Items article, for additional features and limitations.
Preparing the Source Environment
Modern Authentication Requirements
The steps listed in the Required Permission for Performing M365 Mailbox and Archive Migrations article apply to both the source and destination tenant when they are Exchange Online, in regards to Exchange Web Services (EWS) in the mailbox and archive mailbox. Use a Global Administrator for the configuration steps.
Please review the documentation before preparing the source.
Create a Global Administrator Account
Create an admin account in Microsoft 365 for migration or use the global admin account for the tenant. The administrator account must have full access to the user mailboxes, have the required API Permissions, or be granted impersonation rights.
We recommend adding the necessary API permissions to the Modern Authentication app you are using for your O365 mailbox or archive mailbox endpoint, to do so, follow the steps outlined in this guide. This is the suggested method by BitTitan.
However, you can still use the BitTitan impersonation approach if you already have a service account with the Application Impersonation role already assigned. Microsoft is phasing out RBAC Application Impersonation in Exchange Online and no longer allows assignment of this role to new accounts.
Important
Please consider the following information.
- Having administrative access to the Microsoft 365 control panel to manage users does not mean the same account has permission to access all mailboxes for migration.
- Having delegated admin access to accounts does not provide enough access.
To manually grant administrative access for migration, execute the following remote PowerShell commands:
$LiveCred = Get-Credential
Install-Module -Name ExchangeOnlineManagement
Import-Module -Name ExchangeOnlineManagement
Connect-ExchangeOnline -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred
Get-Mailbox -ResultSize Unlimited | Add-MailboxPermission -AccessRights FullAccess -Automapping $false -User <admin_user_name>
- The command needs to be applied each time a new mailbox is created since permissions are set directly on each mailbox. The administrative account will not have access until the permissions are applied.
- This username is the Administrative Username that needs to be entered under the project's Source or Destination settings, within MigrationWiz, when checking the box labeled Use Administrative Login.
Preparing the Destination Environment
For this scenario, the Google IMAP or the API endpoints may be used.
Please review the following prerequisites before preparing your environment.
- Enabling access is required for both G Suite mailbox and Google Drive document migration projects.
- Mailbox migration projects require a G Suite administrator to grant access to the BitTitan client ID and scopes listed in this article.
- Document migration projects require that a G Suite Super administrator grant access to the BitTitan client ID and scopes listed in this article and enable the API access. The steps to do this are included at the bottom of this article.
Grant MigrationWiz OAuth 2.0 access to G Suite
BitTitan products use OAuth 2.0 to authenticate to G Suite and utilize the G Suite (IMAP) endpoint in MigrationWiz. This applies to both mailbox and document migration projects. To configure the OAuth access within your G Suite environment, follow the directions in this article.
Enabling access is required for both G Suite mailbox and Google Drive document migration projects. In order to access your G Suite data, it is necessary to add specifically allowed API scopes to the MigrationWiz project.
Steps in the G Suite Admin Console
Complete these steps to grant BitTitan client ID access to the appropriate scopes:
- Go to https://admin.google.com and authenticate as a Super Administrator.
- In the admin console, go to Menu > Click Security > Access and data control > API controls> Manage Domain Wide Delegation.
Warning
If you do not see the security icon on your admin console home page, your account does not have the necessary rights to make these changes.
Google limits settings access and configuration to only G Suite Super Administrator accounts. - Click Add New.
- Click Add New.
- Enter 113321175602709078332 into the Client Name.
- Enter the following group of scopes into the One or More API Scopes:
https://mail.google.com/, https://www.google.com/m8/feeds,
https://www.googleapis.com/auth/contacts.readonly, https://www.googleapis.com/auth/calendar,
https://www.googleapis.com/auth/admin.directory.group,
https://www.googleapis.com/auth/admin.directory.user,
https://www.googleapis.com/auth/drive,
https://sites.google.com/feeds/,
https://www.googleapis.com/auth/gmail.settings.sharing,
https://www.googleapis.com/auth/gmail.settings.basic,
https://www.googleapis.com/auth/contacts.other.readonly - Click Authorize.
The Client ID is 113321175602709078332. This will grant BitTitan products access to the appropriate scopes.
Enable APIs and Whitelist MigrationWiz as a Trusted App
- Go back to Security.
- Click API Controls.
- Click Manage Third-Party App Access.
- Click Configure New App, then select OAuth App Name or Client ID.
- Search for the MigrationWiz.com App name by entering the OAuth2 Client ID: 113321175602709078332.
- Select the MigrationWiz.com App.
- Select the OAuth2 Client ID (113321175602709078332).
- Select the App Access as Trusted: Can access all Google Services and then click Configure.
Using the Google API for migration allows mailboxes to be migrated even when IMAP is disabled on the Google tenant. IMAP is often disabled for security reasons, which has historically prevented migration through MigrationWiz.
Using the Google API will also increase throughput for the migration and support increased security for the tenant.
Prerequisites
- Subscription to Google Cloud Platform.
- Google Super Admin account.
- Ability to set up a service account on the G Suite tenant.
- The service account must be set up before the MigrationWiz project is created.
Step 1: Create a Google Project
- Go to the Google Cloud Platform (GCP) Console and sign in as a super admin. Choose one of the options below:
- If you haven't used the Google Cloud Platform Console before, agree to the Terms of Service and click Create Project.
- If you have used Google Cloud Platform Console before, at the top of the screen next to your most recent project name, click Down to open your projects list. Then, click New Project.
- Enter a project name and click Create.
Step 2: Enable APIs for Service Account
- From the Google Cloud Platform Console, click Menu () > APIs & Services > Library.
- Enable the following APIs by selecting the specific API and clicking Enable. Repeat for each API:
- Google Calendar API
- Gmail API
- Contacts API
- People API
- Admin SDK API
Make sure that the Gmail, Calendar, and Contacts services are enabled within the Google tenant. You can control services for your users using the instructions on this page: Control who can access G Suite and Google Services.
Step 3: Create a Customer Tenant Service Account
- From the Google Cloud Platform Console, click Menu () > IAM & Admin > Service accounts.
- Click Create Service Account and enter a name.
- Click Done.
- Select the Ellipsis >Create Key for the newly created service account.
- Make sure that JSON is selected and click Create.
- Make sure that you download the key as a JSON file and make a note of the name and location of the file. This JSON file will be used when setting up the migration endpoint in the Mailbox Migration project.
- The JSON file must contain information in the following fields: “type”, “private key”, and “client email”. If these mandatory fields are empty the file upload during endpoint creation will fail.
- Click Close.
Step 4: Setting the Scopes for the Migration
- From the Google Cloud Platform Console, click Menu () > IAM & Admin > Service accounts.
- Find the service account that was set up in Step 3.
- Find the Unique ID field for that service account and copy the ID number. This is the Client ID number that will be used in a later step.
- This field often needs to be added to the view. Click on the Column display options button (|||) and add a checkmark to Unique ID, then click OK.
- This Client ID should be considered similar to Administrator account passwords and handled securely.
- Go to the G Suite admin page at admin.google.com and click on Security > API Controls > Manage Domain Wide Delegation.
- Click Add New.
- In the Client ID field, paste the Unique ID copied in step 3.
- In the One or More API Scopes field, paste all scopes listed below:
https://mail.google.com/,
https://www.google.com/m8/feeds,
https://www.googleapis.com/auth/contacts.readonly,
https://www.googleapis.com/auth/calendar,
https://www.googleapis.com/auth/admin.directory.group,
https://www.googleapis.com/auth/admin.directory.user,
https://www.googleapis.com/auth/drive,
https://sites.google.com/feeds/,
https://www.googleapis.com/auth/gmail.settings.sharing,
https://www.googleapis.com/auth/gmail.settings.basic,
https://www.googleapis.com/auth/contacts.other.readonly - Click Authorize.
MigrationWiz Steps
Create a Mailbox Migration Project
- Click Go To My Projects.
- Click Create Project.
- Select a Mailbox migration type. Mailbox projects are used to migrate the contents of the primary user mailbox from the previous environment to the new environment. Most mailbox migrations can migrate email, calendars, and contacts.
- Click Next Step.
- Enter a Project name and select a Customer.
- Click Next Step.
- Create or select your source and destination endpoints.
- Click Save and Go to Summary.
Endpoints
Endpoints are created through MigrationWiz. If you select an existing endpoint from the dropdown, it will only show ten endpoints. If you have more than ten, you may need to search it.
Consider that endpoint search is case and character-specific. For example, Cust0mer will not show up if the search is customer. We recommend keeping a list of endpoints you have created, along with any unique spellings or capitalization you may have used.
Create your Endpoints
Please review the following tabs to create your destination and source endpoints.
Create your source endpoint by following the next steps:
- Click New
- Enter a name in the Endpoint Name field.
- Select Microsoft 365 (US Government) from the Endpoint Type drop-down menu.
- Select one of the following credential options.
- Provide Credentials, the form expands to show more fields for username and password. MigrationWiz uses the credentials to access the service chosen. In most cases, you must provide credentials for an administrator account on those services, as this will enable MigrationWiz to have full access to the cloud service.
- Do not Provide Credentials, MigrationWiz requests credentials from end users before a migration can be started. This may slow your migration, as you are now dependent on end users to provide these credentials. This would also require each end user to be excluded from 2FA/MFA and ADFS instead of just a single service account to be excluded.
- Complete the Application (client) ID, the Directory (tenant) ID, the Client Secret, and the Region of Destination Tenant fields, otherwise, you cannot save your project.
Create your destination endpoint by following the next steps:
- Click New.
- Enter a name in the Endpoint Name field.
- Select G Suite (Gmail API) or G Suite (IMAP) from the Endpoint Type drop-down menu.
- Upload the JSON file for your service account setup. This file contains the Google Service Account key saved during the service account setup process.
- Provide a valid super administrator email address for the G Suite account that matches the end user domain.
- Click Next Step.
Application (client) ID, Directory (tenant) ID, and Client Secret
For Microsoft 365 Mailbox and Archive migrations, MigrationWiz adds the Application (client) ID, Directory (tenant) ID, and Client Secret fields.
While the Application (client) ID and the Directory (tenant) ID are mandatory, the Client Secret field is not. It will depend on the permissions of the user account that performs the migration. Please review the following information before the creation of your M365 endpoints.
-
The client secret value is not mandatory if you use delegated permissions. Please leave the Client Secret field empty.
-
The client secret value is mandatory if you use the Application Impersonation using API Permissions approach.
- If you already have an admin account with the Impersonation role enabled (not using the Application Impersonation using API Permissions approach) the client secret value is not mandatory. Please leave the Client Secret field empty.
For more information about how to get the Application (client) ID and Directory (tenant) ID values from the Application Registration, please review step 3 of this article.
Region of Destination Tenant
MigrationWiz displays a dropdown to select the Preferred Region of the Tenant at the destination endpoint. This value updates the Preferred Region of the Destination Tenant field in the project's Advanced Options, and vice versa. You will notice that both values are always the same.
The Region of Destination Tenant feature optimizes the migration performance and speed when choosing the region closest to the destination tenant.
Tip
You can find the region of your destination tenant directly in the Microsoft Entra admin center by going to Identity > Overview > Properties, and using the Country or region or the Data location.
For more information on this topic, review this article.
Warning
If you do not complete this field you will not be able to save your project and the “This field cannot be left blank.” error will appear.Endpoint Validation
Once the information has been provided for both, the source and destination endpoint, and the customer selects Save and Go to Summary, MigrationWiz performs an endpoint validation check.
This validation tests the administrator credentials entered into the project and the Modern Authentication setup only. If there is an issue, the screen redirects to the endpoint and provides an error message or flyout that can be selected for more information regarding the error.
Common Errors when Configuring Your Endpoint
For more information, review the AADSTS700016, AADSTS90002, and ADDSTS50126 issues on the Common Errors Using Modern Authentication page.
Add Accounts (Items)
Add the accounts that will be migrated, also referred to as items, to a project using one of the following options:
- An email address.
- Login name.
- Password.
- Mailbox status.
Bulk Add uses a CSV containing the source and destination email addresses for the users to add the users to the project. If migrating only a specific group from a tenant, we recommend using the Bulk Add option.
MigrationWiz allows you to bulk import mailboxes into the system.
To import one or more mailboxes:
- Sign in to your MigrationWiz account.
- Select the Project for which you want to perform the bulk import.
- Click Add.
- Click Bulk Add.
- Follow the instructions on the page. (Note: After adding new users to the Bulk Add Items page, make sure to select the radio button All newly detected mailboxes will be migrated as shown below before clicking on the green Save button)
Autodiscover process within MigrationWiz can be used to discover items from the Source environment so that they can be imported into your projects. This can then be edited in the project to remove users not being migrated. All users are added with the source and destination email addresses set to match the source email.
This can be changed by using the Change Domain Name button at the top of the project page. If the usernames are changing during the migration, we recommend using the Bulk Add option.
There are a few requirements for this to work:
- The Source has to be Exchange 2007 or later.
- The endpoint on the Source needs to use admin credentials.
- For mailbox migration projects, the admin account that is specified within the Source endpoint needs to have a mailbox associated with it.
- The admin mailbox must be listed in the public Global Address List (GAL).
One additional item to note here is that there is no way to restrict the IP addresses that the connection will come from. This means that the steps outlined in our IP Lockdown guide will not apply here. If your environment requires that any IP addresses be whitelisted, it is recommended that items be added to your project using one of the other available options.
Autodiscover of items will not work while using Modern Authentication
Autodiscovery exposes the following items:
- For mailbox migration, autodiscovery will list all mailboxes at the Source.
Steps to Run Autodiscover
-
Navigate to the project you want to import users into.
-
Ensure that you have created an endpoint for the source project.
-
Once in the project, on the top navigation bar, click on the Add drop-down, then select Autodiscover Items. This will begin the Autodiscover process.
-
Once discovered, click on the Import button, to import the items into your MigrationWiz project.
Advanced Options
Advanced Options allow you to choose your notifications, filtering, maintenance, licensing, performance, and some configuration options.
Support Tab
Support Options are advanced configurations that make use of PowerShell or code blocks to provide extra options or resources for your migration.
Optional Settings
The following options are the most valuable for this migration scenario:
- FolderMapping="^INBOX/->" This will map folders to the root label on the Destination mailboxes, rather than under inbox/labelname.
Default Options for Microsoft 365 Endpoints
By default, some fields are view-only. In other words, you cannot edit or remove them from the support options page. To edit them, you need to edit the source or destination endpoint of your project.
Among these default options, you can find ModernAuthClientIdExport, ModernAuthTenantIdExport, ModernAuthClientSecretExport, ModernAuthClientIdImport, ModernAuthTenantIdImport, and ModernAuthClientSecretImport.
The support options above are required when configuring your endpoint.
Important
Keep in mind that the ModernAuthClientSecretExport and the ModernAuthClientSecretImport support options are text-masked.
Warning
You cannot update the default Advanced Options, in case you try to modify or add new ones the following message arises.
Run Migration
The following sections will guide you through setting up and launching your migration. Each header is one step, with its component steps below. Follow these steps in order, and read the notes for important information about dependencies or best practices.
Run Verify Credentials
- Open the Project containing items you wish to validate.
- Select the items you wish to validate.
- Click the Start button in your dashboard.
- Select Verify Credentials from the drop-down list.
- Once complete, the verification results will be shown in the Status section.
Notify Users
Send out the final notification that the migration is beginning. When the migration starts, include the expected duration, any usage instructions during migration, and any expected steps or notifications for the post-migration timeline.
Pre-Stage Pass
- Select the users.
- Click the Start button from the top, and select Pre-Stage Migration.
- Uncheck the box named Automatic Replies (This option will be removed from the Pre-Stage pass at a later date)
- Under the Migration Scheduling section, from the drop-down list, select 90 days ago.
- Click Start Migration.
MX Record Cutover
Change over MX records on the DNS provider's portal once the Pre-Stage Pass has been completed for the users. Also, include the AutoDiscover (CName) setting. There are several options for this, based on the size of your project.
Required Mail Coexistence
If mail coexistence is required, you must set up mail forwards against those user accounts that are in the migration batches. This Google documentation explains how.
Run Full (Delta) Pass Migration
- Select the users – you may either select individual users or select all users in a project by clicking the checkbox to the left of Source Email.
- Click the Start button from the top.
- Select Full Migration. If you want to delay your migration, then select the checkbox marked "Automatically start the migration at", and enter the date and time to have the migration start. To start a migration immediately, you do not need to select the scheduling option.
Important
It is recommended to only migrate Automatic Replies in the last migration pass for the user. - Click Start Migration.
Run Retry Errors
Each error logged represents an item that was not migrated. MigrationWiz contains a mode in which you can resubmit the migration to retry failed items. This mode of operation is always free of charge. You may only submit mailboxes in this mode only if they satisfy all of the following conditions:
- The last migration was completed successfully.
- The mailbox contains at least one error.
If your mailbox does not satisfy these conditions, you will receive a warning when submitting the migration in this mode and your request will not be fulfilled.
To submit one or more mailboxes in retry mode, perform the following steps:
- Click the Go To My Projects button.
- Select the project that contains the mailboxes that you want to retry.
- Select the mailboxes that have migration errors.
- Click on the Start button.
- Select Retry Errors from the menu.
- Click the Retry Errors button.
When errors are repaired, they will disappear from the error log. Some errors may not disappear if the Source item was not reprocessed (due to filters, for example), has been deleted or moved, or if the item failed again.
Review the information and act accordingly. If problems persist, contact Support.
Click the bar chart icon in the MigrationWiz dashboard to receive an email containing all the project migration statistics.