How to Add a Former Employee's Email Address in Exchange Online
Question details
The user needs to manage and add a former employee's email address in Exchange Online but is blocked by an Azure Active Directory error.

- Product
- Exchange Online
- Device & OS
- not provided
- Scenario
- Attempting to manage user accounts and email addresses for former employees within a hybrid identity management or cloud environment.
- Observed behavior
- An Azure Active Directory error appears, stating that the object is mastered on-premises or undergoing migration, which prevents modifying the recipient object in the cloud.
Ensure you are signed in with Global Administrator credentials and verify that your organization no longer requires on-premises directory synchronization before making system-wide identity configuration changes.
Disable Directory Synchronization Using PowerShell
By disabling directory synchronization via PowerShell, you can convert synced users to cloud-only users, allowing you to manage their email addresses directly in Exchange Online.
When an account is managed by on-premises Active Directory, Exchange Online locks the recipient object to prevent conflicting changes. If hybrid identity management is no longer needed, disabling directory synchronization resolves this lock.
Launch PowerShell on your computer with administrative privileges to ensure you have the necessary permissions to run Microsoft Online Services commands.
Type the command 'Connect-MsolService' and press Enter. When prompted, sign in using your Microsoft 365 Global Administrator credentials.
Run the command '(Get-MSOLCompanyInformation).DirectorySynchronizationEnabled' to verify if directory synchronization is currently active. If it returns 'True', proceed to the next step.
Execute the command 'Set-MsolDirSyncEnabled -EnableDirSync $false' to turn off synchronization. Confirm the action if prompted by the system.
Run the status check command again '(Get-MSOLCompanyInformation).DirectorySynchronizationEnabled'. Once the value returns 'False', you can successfully manage the former employee's email address in the Exchange Admin Center.

Manage Your Business Documents with WPS Office
While resolving backend email configurations in Microsoft 365, you can empower your team with WPS Office—a powerful, lightweight, and free alternative to Microsoft Office. Enjoy full format compatibility without the heavy subscription costs.
- 1. Download the Installer: Visit the official WPS website and download the free WPS Office installation package for your operating system.
- 2. Install WPS Office: Run the installer and follow the quick on-screen prompts to set up the software on your computer.
- 3. Open Your Office Files: Launch WPS Office and drag your existing .docx, .xlsx, or .pptx files into the workspace to continue editing seamlessly.

Frequently Asked Questions
Why does Exchange Online say my object is mastered on-premises?
This error occurs because the user account or mailbox was originally created in a local Active Directory environment and synced to the cloud. Microsoft 365 restricts cloud modifications to prevent conflicts with your local server.
Can I keep directory synchronization enabled and still change the email address?
Yes. If you must keep directory synchronization enabled, you must modify the former employee's email address attributes (such as proxyAddresses) in your on-premises Active Directory and wait for the changes to sync to Exchange Online.
How do I assign a former employee's email to a new user?
Once the object is cloud-managed, you can convert the former employee's mailbox to a Shared Mailbox, or you can delete the old account and add the email address as an alias (proxy address) to an active employee's mailbox.




