Hi @Dmitrii Ruzhanskii ,
We can close the ticket. I just created a new account with correct email...
Okay, this might be the quickest way to solve it as troubleshooting is often more time consuming. Thanks for the update and sharing it so that others experiencing the same thing can reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your reply in case you'd like to "Accept" the answer : )
[Sync issue between Azure Active Directory and Exchange Online]
Issue Symptom:
we had a disabled account for a user and 2 days ago I activated it using AD users and computers.It synced with the cloud and user can log in using their new email and password.
Today they contacted me with the request that colleagues cannot find the email from the list, because the recommended email contains "@onmicrosoft.com" instead of @companyname.com
Steps I have taken to solve it:
1.Checked AD users and computers, and specified these fields manually:
proxyAddress - SMTP:******@companyname.com
mail - ******@companyname.com
It didn't help
2.I opened Exchange and for the user I can see "Primary email" is ******@onmicrosoft.com, SMTP: ******@companyname.com
2.1. I try to change the primary email but I gtt the following error:
Error:
Error executing request. An Azure Active Directory call was made to keep object in sync between Azure Active Directory and Exchange Online. However, it failed. Detailed error message: Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration. DualWrite (Graph) RequestId: d5807dd2-e490-4f08-9e1a-b3c5ad239445 The issue may be transient and please retry a couple of minutes later. If issue persists, please see exception members for more information.
3.I opened the Entra and there are correct fields for the user, like nickname. Didn't fix it.
Current status:
"I just created a new account with correct email..."