Use the advanced data import method for Exchange Online

Supported editions for this feature: Business Starter, Business Standard, and Business Plus; Enterprise Standard and Enterprise Plus; Education Fundamentals, Education Standard, and Education Plus; Essentials Starter, Essentials, Enterprise Essentials, and Enterprise Essentials Plus; Nonprofits; G Suite Basic and G Suite Business. Compare your edition

You can use the advanced import method to streamline large-scale data imports from Microsoft Exchange Online to Google Workspace. You can copy calendar, contact, and email data.

About the advanced data import method

  • Uses your own dedicated API quota.
  • You set up a Microsoft Azure application through the Azure portal and import your data to Workspace in batches.
  • The import doesn't delete or modify a user's data in Exchange Online but copies it to the user's account in Workspace.
  • Except where indicated, you complete these steps in the Google Admin console for the Workspace account you're importing to.
  • Not all Exchange Online features are supported. For details, go to What's imported in an Exchange Online import?.

If you want to instead import data with Google's shared API quota, go to Use the default data import method for Exchange Online.

Requirements

  • A super administrator must manage the import on the Workspace side. A global administrator, privileged role administrator, or other qualified user must approve the import in Exchange Online. Resellers cannot import data for their customer accounts.
  • You need to verify your Workspace domain. If you have an Essentials edition, you need to verify before starting an import. For details, go to Verify your domain for Google Workspace.
  • The data import tool copies only users with existing Exchange Online and Workspace accounts. The service doesn't create new user accounts for imported data.
  • You need an email address for every Exchange Online user that you want to import. For details, go to Plan for where and how you will manage your user accounts.
  • You need a Workspace user account for each user you're importing to Workspace. For details, go to Options for adding users.
  • Each user needs a license to use Google services. For details, go to How licensing works.
  • Turn on the Gmail and Google Calendar services for the users you're importing. For details, go to Turn a service on or off for Google Workspace users.
  • You can import data for up to 5,000 Exchange Online users in one batch. You can import 10 batches at one time. Additional users require a separate data import.

Run a data import

You must be signed in as a super administrator for this task. Resellers cannot import data for their customer accounts.

Before you begin: To ensure a secure data import from Exchange Online to your Workspace account, you must first create a Microsoft Azure application in the Azure portal. For details, go to Set up Azure for an advanced data import.

Step 1: Create a new import batch

  1. In the Google Admin console, go to Menu and then Data and then Data import & export and then Data import.

    You must be signed in as a super administrator for this task.

  2. For Advanced, click New batch.
  3. For Wave name, enter a name for this batch of users and then click Continue.
  4. For Client ID, enter the unique ID number for your Exchange Online account.
  5. For Client Secret, enter the client secret value for your Azure tenant.
  6. For Tenant ID, enter the unique ID number for your Azure tenant.
  7. Click Connect.

Step 2: Select users to import

Create a comma-separated values (CSV) file that lists the Exchange Online users that you want to import in this batch. You can create a new CSV file. Or, download a sample file and add information. The completed CSV file must be smaller than 10 MB and contain no more than 5,000 users.

To get details about users in your Exchange Online tenant, go to Plan for where and how you will manage your user accounts.

To create the CSV file:

  1. Using your Workspace administrator account, open a spreadsheet program. Or, in the Admin console, select Download a sample CSV file.
  2. Add the header Source Exchange Email and add an email address for each Exchange Online user that you want to import. Use a separate row for each email address.

    Example:

    Source Exchange Email
    kim@example.com
    alex@example.com
  3. Save the spreadsheet as a CSV file.
  4. Upload the file to the Admin console:
    1. In your Admin console, click Upload CSV.
    2. Select the fileand thenclick Open.
    3. Click Tasks to confirm that the file is successfully uploaded.
  5. If the CSV file doesn't successfully upload:
    1. Select the file and click Delete and thenYes to confirm.
    2. Create a new file and try to upload it again.

    If you encounter this issue more than once, contact Google Workspace support.

(Optional) Step 3: Create & upload an identity map

If necessary, create a second CSV file (separate from the file of Exchange Online users) to map Exchange Online users to Workspace users. You can create a new CSV file. Or, download a sample file and add rows. You don't need to add external users. Their permissions import by default. The completed CSV file must be smaller than 10 MB.

A single Exchange Online user can't be mapped to multiple users or groups in Workspace. You need to provide a one-to-one or many-to-one mapping.

An identity map is not always required. You don't need an identity map if:

  • The user's email address in Exchange Online is the same as their address in Workspace. For example, the user's email address is raha@example.com for their Microsoft account and their Workspace account.
  • All users keep the same username in Workspace and are mapped to another domain name. For example, all users have the domain name @example.com and are moving to the domain name @altostrat.com. The users keep their username and only the domain name changes.

If you have some users that don't need to be mapped and some that do, you can create an identity map for only the users that require mapping.

Create an identity map

  1. Using your Workspace administrator account, open a spreadsheet program. Or, in the Admin console, select Download a sample CSV file.
  2. In the first column, add the header Source Email and add an email address for each Exchange Online user that you want to import. Use a separate row for each user.
  3. In the second column, add the header Destination Email and enter a Workspace email address for each user in the first column. Use a separate row for each user.

    Example:

    Source Exchange Email Destination Email
    charliecruz@example.com ccruz@other-company.com
    kailee@example.com klee@other-company.com
  4. Save the spreadsheet as a CSV file.
  5. Upload the file to the Admin console:
    1. In your Admin console, click Upload CSV.
    2. Select the fileand thenclick Open.
    3. Click Tasks to confirm that the file is successfully uploaded.
  6. If the CSV file doesn't successfully upload:
    1. Select the file and click Deleteand thenYes to confirm.
    2. Create a new file and try to upload it again.

    If you encounter this issue more than once, Contact Google Workspace support.

Step 4: Configure import settings

Adjust the following settings to choose which data to copy from Exchange Online.

  1. Click Edit settings.
  2. Check one or more of the following boxes to choose which data to import for all your selected users:
    • Email
    • Calendar events
    • Contacts—A new import duplicates any contacts you already imported. Contact labels are not duplicated.
  3. For Date range, enter a date to start importing data from the source you selected. All calendar events and email messages sent or received after this date are copied to Workspace and all contacts are copied, regardless of creation date.
  4. (Optional) To specify which email information is imported, for Email options, check any of the following boxes:
    • Include deleted emails—Import deleted email messages.
    • Include junk emails—Import email messages in spam folders.
    • Exclude specific folders—Enter the excluded folder names, separated by commas. For details, go to Exclude folders from importing.
  5. (Optional) To import the Exchange Online users' calendars and events, including calendars for personal appointments, check the Copy additional calendars box. The calendars import to Other calendars in Google Calendar.
  6. If you created an identity map for only some users or did not create one at all, check the Copy accounts that aren't included in the map that are discovered during the data import box to import all Exchange Online users, including those not found in the identity map.

    Then, choose an option:

    • If the user's email address in Exchange Online is the same as their address in Workspace, check the Keep their original address box.
    • If the domain name for all imported users is changing, check the Use a different email address domain for these accounts box and then select a domain from the list.
  7. Click Save changes.

Exclude folders from importing

  • Separately add each Exchange Online folder or subfolder name.
  • If you exclude a folder, the import doesn't include its subfolders and any email messages in them.
  • To exclude a subfolder, use the full path and separate the parent folder from the subfolder with a forward slash (/). For example:
    • If you want to exclude the subfolder Asia in the folder Travel, enter Travel/Asia.
    • If you also add Travel in the list, such as Travel, Travel/Asia, then all the subfolders are automatically excluded.
  • To exclude a folder with a forward slash (/) in its name, replace each slash with an underscore (_). For example, to exclude Folder/with/slash, add it as Folder_with_slash.
  • You can also exclude default Microsoft folders, such as Deleted Items, Inbox, or Junk email.

Step 5: Start an import and check its progress

Start importing the current batch of users. You can import 5 batches at one time.

  1. Click Run full import.

    The status changes to In progress and the following information is updated in real time:

    • Users processed—Number of users whose import is complete for all selected data types.
    • Emails discovered—Number of email messages in the Exchange Online users' accounts.
    • Emails imported—Number of email messages that were imported.
    • Emails skipped—Number of email messages that were skipped. For example, an email is marked as skipped if it was already imported in a full import and then you run a delta import.
    • Emails failed—Number of email messages that failed to import.
    • Calendars processed—Number of calendars that were imported.
    • Calendar events discovered—Number of events in the Exchange Online users' accounts.
    • Calendar events imported—Number of events that were imported.
    • Calendar events skipped—Number of events that were skipped. For example, an event is marked as skipped if it was already imported in a full import and then you run a delta import.
    • Calendar events failed—Number of events that failed to import.
  2. You can navigate away from the import page without interrupting the import. Your import continues unless you cancel it.

    When the import is complete, you get an email with importn statistics. Any reports are attached.

  3. (Optional) To export a report for a import in progress:
    1. Click View data import logs or Export user report.
    2. If the Tasks list doesn't automatically open with the exported report, click Tasks and then the report link.
    3. Click Open in Google Sheets to open the report in Sheets.
    4. For details about the reports, go to Understand Exchange Online data import reports.

Step 6: Stop an import in progress

To stop an import that's in progress, click Stop import. It might take a few minutes for the import to stop, and the import process does not roll back. If you are running other batches at the same time, those batches will continue to import.

Email messages, calendars, calendar events, and contacts imported before you stopped the import are not deleted from Gmail, Google Calendar, or Google Contacts.

Step 7: Run a delta import

After you successfully import a batch of data, you can run a delta import to copy any newly added or updated data to Workspace. You can also use a delta import to copy data that failed in the initial import. If you imported the same data in 2 separate batches, a delta import won't create duplicate items as long as you haven't clicked Exit import to remove one of the batches.

For details, go to Run a delta import.

Exit a completed import

  • If you exit an import for one batch and then start a new import for the same batch of data, the second import might create duplicates in Workspace. To prevent duplication, avoid creating 2 separate imports for the same batch of data.
  • Once you exit import for a batch, you can no longer access its configuration data or reports. Don't exit an import until it's fully complete and no delta imports are needed.
  • You can run delta imports and review information for a completed import in the Admin console until you exit the import.

To exit a completed import:

  1. (Optional) If you want to save logs from a completed import, click View data import logs and Export user report. For details, go to Understand email import reports.
  2. Click Exit importand thenExit and delete import.

When you exit, the system deletes the client ID and removes Data Import as a client in the domain-wide delegation setting.

Exchange Online data import is intended as a productivity feature and isn't designed to assist with legal compliance matters. You and your organization are responsible for assessing and meeting your organization's legal compliance needs.


Google, Google Workspace, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.