This user’s on-premises mailbox hasn’t been migrated to Exchange Online

Unable to create Exchange Online mailbox

In Exchange on-premise migration to Office 365, one of the first steps is to create the users in Office 365.

Most of the time, the Microsoft Azure Active Directory Connect tool is used. The default configuration of this tool cause problem if an Exchange server exists (for example, in an Exchange hybrid environment). This problem is due to the msExchMailboxGuid attribute.

By default, the user synchronization will cause this attribute to be synchronized to Office 365 and therefore Exchange Online. This is a problem because Exchange Online will assume that the mailbox is not migrated and will report the following error when assigning an Exchange Online license:

This user’s on-premises mailbox hasn’t been migrated to Exchange Online. The Exchange Online mailbox will be available after migration is completed.

Exchange Online recognizes that the user has a mailbox ID and expects the mailbox to be migrated with the native Microsoft tool (and only this tool). So if you use third party tool (Migration Wiz, CloudMigrator, etc.) you have to make some configurations.

You want to go further in Office 365 ?

Read Managing Office 365 like a rockstar!

Allow mailbox provisioning

You have to delete an AD attribute from the synchronization.

From the Azure AD Connect server, execute Synchronization Rules Editor.

Click on In from AD – User Exchange > Edit.

Click on Yes. This will create a new rule and disable the default rule. This is good practice because all default rules are reset each time Azure AD Connect is updated.

  • Name: modify if needed
  • Description: modify if needed
  • Precedence:
    choose a number below than 100 for the rule to be executed before the default rules
  • Uncheck Disabled

Click on Transformations and modify the line related to msExchMailboxGUID :

  • FlowType : Expression
  • TargetAttribute : msExchMailboxGUID 
  • Source : NULL
  • Check Apply Once
  • Merge Type : Update
  • Click on Save.

Finally, you must refresh the Azure AD Connect database to apply the rules change : Open Azure AD Sync Service. In the Connectors tab, right click on the AD connector AD > Run > Full Synchronization.

This Post Has 4 Comments

  1. David

    Where are you getting this Synchronization Rules Editor from? I don’t see that anywhere in AAD Connect.

    1. ITPro-Tips

      It is a tool you get when you installed Azure AD Connect. Try to search ‘Rules Editor’ in your search bar.

  2. Richard Pumbridge

    I am running the Synchronization Rules Editor, but there are no rules showing in the window. Most of the drop down fields in the Rules Editor are empty. e.g. MV Object Type: , MV attribute: , Connector: etc.
    How do I populate the window so I can edit the rule indicated above?

    1. ITPro-Tips

      Your account is member of ADSync admins ?

Leave a Reply

3 × 5 =

Close Menu