Microsoft 365 GCC High (US Government) to G Suite (Gmail API) or G Suite (Gmail IMAP)

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:

  1. Purchase Licenses.
  2. Create a Customer.
  3. Apply Licenses.
  4. Review Considerations.
Purchase Licenses Create a Customer Apply Licenses Considerations

Purchase licenses by following the steps below:

  1. Sign in to your BitTitan account. 
  2. In the top navigation bar, click Purchase.
  3. Click the Select button and choose User Migration Bundle licenses.
  4. Enter the number of licenses you want to purchase. Click Buy Now.
  5. Enter a Billing address if applicable.
  6. Click Next.
  7. Review the Order Summary and enter a payment method.
  8. Click Place Your Order.

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.

Which items are migrated?
  • Inbox
  • Folders/Labels
  • Email
  • 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
Which items are not migrated?
  • 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.
Full 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. 

Google IMAP

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:

  1. Go to https://admin.google.com and authenticate as a Super Administrator.
  2. In the admin console, go to Menu Google_Menu.png > 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.
  3. Click Add New.
  4. Click Add New.
  5. Enter 113321175602709078332 into the Client Name.
  6. 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
  7. 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

  1. Go back to Security.
  2. Click API Controls.
  3. Click Manage Third-Party App Access.
  4. Click Configure New App, then select OAuth App Name or Client ID.
  5. Search for the MigrationWiz.com App name by entering the OAuth2 Client ID: 113321175602709078332.
  6. Select the MigrationWiz.com App.
  7. Select the OAuth2 Client ID (113321175602709078332).
  8. Select the App Access as Trusted: Can access all Google Services and then click Configure.
Google API

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

  1. 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.
  2. Enter a project name and click Create.

 Step 2: Enable APIs for Service Account

  1. From the Google Cloud Platform Console, click Menu () > APIs & Services > Library.
  2. 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

  1. From the Google Cloud Platform Console, click Menu () > IAM & Admin > Service accounts.
  2. Click Create Service Account and enter a name.
  3. Click Done.
  4. Select the Ellipsis >Create Key for the newly created service account.
  5. 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.
  6. Click Close.

Step 4: Setting the Scopes for the Migration

  1. From the Google Cloud Platform Console, click Menu (Google_Menu.png) > IAM & Admin > Service accounts.
  2. Find the service account that was set up in Step 3.
  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.
  4. Go to the G Suite admin page at admin.google.com and click on Security > API Controls > Manage Domain Wide Delegation. 
  5. Click Add New.
  6. In the Client ID field, paste the Unique ID copied in step 3.
  7. 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
  8. Click Authorize.

MigrationWiz Steps

Create a Mailbox Migration Project

  1. Click Go To My Projects.
  2. Click Create Project.
  3. 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.
  4. Click Next Step.
  5. Enter a Project name and select a Customer.
  6. Click Next Step.
  7. Create or select your source and destination endpoints.
  8. 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.

Source Endpoint Destination Endpoint

Create your source endpoint by following the next steps:

  1. Click New
  2. Enter a name in the Endpoint Name field.
  3. Select Microsoft 365 (US Government) from the Endpoint Type drop-down menu.
  4. 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.
  5. 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.

    Destintation Settings.png

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.

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.

Country or region.png

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:

Quick Add
This option allows you to add items one at a time. To do so, you only have to provide an email address if you entered administrative credentials when setting up the project. If you did not, enter the following user information:
  • An email address.
  • Login name.
  • Password.
  • Mailbox status.
Bulk Add

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:

  1. Sign in to your MigrationWiz account.
  2. Select the Project for which you want to perform the bulk import.
  3. Click Add.
  4. Click Bulk Add.
  5. 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)

    New Bulk Add Requirement.png

Autodiscover

​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

  1. Navigate to the project you want to import users into.

  2. Ensure that you have created an endpoint for the source project.

  3. 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.

  4. 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.
Duplicate Support Option.png

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

  1. Open the Project containing items you wish to validate.
  2. Select the items you wish to validate.
  3. Click the Start button in your dashboard.
  4. Select Verify Credentials from the drop-down list.
  5. 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

  1. Select the users.
  2. Click the Start button from the top, and select Pre-Stage Migration.
  3. Uncheck the box named Automatic Replies (This option will be removed from the Pre-Stage pass at a later date)
  4. Under the Migration Scheduling section, from the drop-down list, select 90 days ago.
  5. 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

  1. 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.
  2. Click the Start button from the top.
  3. 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. 
  4. 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:

  1. The last migration was completed successfully.
  2. 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:

  1. Click the Go To My Projects button.
  2. Select the project that contains the mailboxes that you want to retry.
  3. Select the mailboxes that have migration errors.
  4. Click on the Start button.
  5. Select Retry Errors from the menu.
  6. 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.

Was this article helpful?
0 out of 0 found this helpful