Manage Office 365 mailboxes in a Hybrid deployment
Problem:
You are unable to change the user settings in Office 365, after migrating within the Hybrid environment using EdbMails Exchange migration software. You receive the following error:
This user is synchronized with your local Active Directory. Some details can be edited only through your local Active Directory.
This error occurs when the on-premises Active Directory (AD) is no longer available or when you have disabled the on-premise Exchange server mailbox after Hybrid migration to Office 365.
Solution:
Ensure that you have set the msExchMailboxGuid value to Null to prevent the automatic synchronization of on-premises Exchange with Office 365. If you have already set the msExchMailboxGuid or you do not have access to the on-premises Exchange server, disable the active directory synchronization by following the below steps.
If the response is False, the directory synchronization is disabled. Check the status periodically to verify if the status changes from True to False. The deactivation procedure can take up to 72 hours depending on the number of objects present.
You can now change the user settings, remove objects that were synchronized with the Active Directory tool in the Hybrid environment.
- Run Windows PowerShell as an administrator and execute the cmdlet to connect to Azure AD
Install-Module MSOnline
Connect-MsolService
Enter your Office 365 global admin credentials
- Run the following cmdlet to disable the AD synchronization
Set-MsolDirSyncEnabled -EnableDirSync $false
- Run the cmdlet to view the synchronization status
(Get-MSOLCompanyInformation).DirectorySynchronizationEnabled