When you have existing user active directory record and you’ve accidentally had provision the mailbox at Office 365. Thus, result you unable to add the user into any distribution group and etc. because it doesn’t have record in Exchange Hybrid. Besides, user’s primary email address wasn’t correct, such as “xxxx@domain.onmicrosoft.com” instead of “xxxx@domain.com”.
Here are the steps to resolve your problems;
Implication: None (for me)
*Note: You have to be familiar with PowerShell. Best to try it on a test user account first.
- Go to Exchange Hybrid server
- Open Exchange Powershell Management
- Type the following commands;
Enable-remotemailbox “userDisplayName” -RemoteRoutingAddress “xxxx@domain.mail.onmicrosoft.com”
- Go to Azure AD Server
- Open Windows Powershell
Start-ADSyncSyncCycle -PolicyType Delta
- You will than review that particular user’s the mailbox in Office 365, has more email addresses shown in the email address category itself. And also the Primary email address has change to the right one.
*Note: This may take half an hour for the overall settings to be propagated at the user side. Because at the user side they will still view their primary smtp as the incorrect one, even though the modification has done.