onmicrosoft alias not created for an existing user

Addie Baker 21 Reputation points
2022-03-24T17:22:35.477+00:00

One of my users is missing the onmicrosoft.com alias and I cannot add it manually. I have added it to my on prem and it says it synced in AD connect but its not updating the user in Azure users

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,732 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,497 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 109.9K Reputation points MVP
    2022-03-24T17:44:18.977+00:00

    Have you checked for any potential conflicts/duplicate values? If you are certain the address is not in use, you can use one of the following workarounds:

    • Change the user UPN to user@tenant .onmicrosoft.com. As Microsoft enforces a requirement that at least one SMTP address should match the UPN, this will solve the issue. You can change the UPN back to the original value after.
    • Use the -WindowsEmailAddress parameter, which allows you to change the primary SMTP address even for synced users. For example: Set-Mailbox user@keyman .com -WindowsEmailAddress user@tenant .onmicrosoft.com

    You can change it back to the original value after.

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,671 Reputation points
    2022-04-06T19:30:04.99+00:00

    Yes, as michev mentioned if there any conflicts or duplicate value then this is expected behavior so you could use below cmdlet to find if any of users or group has that specific aias. Hope this helps.

    User:
    get-MsolUser -All | where {$_.userPrincipalName -like "user@tenant.onmicrosoft.com"} 
    get-MsolUser -All | where {$_.proxyAddresses -like "user@tenant.onmicrosoft.com"} 
    get-MsolUser -All | where {$_.mail -like "user@tenant.onmicrosoft.com"} 
    get-MsolUser -All | where {$_.targetAddress -like "user@tenant.onmicrosoft.com"} 
    
    Group: 
    get-MsolGroup -All | where {$_.proxyAddresses -like "user@tenant.onmicrosoft.com"} 
    get-MsolGroup -All | where {$_.mail -like "user@tenant.onmicrosoft.com"} 
    get-MsolGroup -All | where {$_.targetAddress -like "user@tenant.onmicrosoft.com"} 
    
    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.