unable to login after email address change

%3CLINGO-SUB%20id%3D%22lingo-sub-899783%22%20slang%3D%22en-US%22%3Eunable%20to%20login%20after%20email%20address%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-899783%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Experts%3C%2FP%3E%3CP%3EOur%20company%20email%20address%20policy%20is%20firstname.lastname.%20i%20have%20an%20user%20whose%20email%20address%20was%20Glenn.Maxwell%40contoso.com%3CBR%20%2F%3Ei.e%20FirstName%3A%20Glenn%20LastName%3AMaxwell%2C%20Alias%3A%20Glenn.Maxwell%20and%20email%20address%20glenn.maxwell%40contoso.com.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20exchange%20hybrid%20environment%20and%20this%20user%20is%20a%20office365%20user%2C%20i%20create%20users%20in%20exchange%20onprem%20and%20then%20migrate%20to%20cloud.I%20got%20a%20requirement%20to%20change%20the%20email%20address%20to%20Glenn.Max%40contoso.com.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20i%20have%20changed%20Last%20Name%20to%20Max%20and%20changed%20alias%20using%20the%20below%20syntax%20on%20onprem%20and%20performed%20AD%20Sync%3CBR%20%2F%3E%3CSTRONG%3ESet-RemoteMailbox%20-Identity%20glenn.maxwell%40contoso.com%20-Alias%20glenn.max%3C%2FSTRONG%3E%3CBR%20%2F%3Ethen%20i%20have%20renamed%20email%20address%20on%20exchange%20onprem%20to%20glenn.max%40contoso.com%20and%20performed%20AD%20sync.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20the%20user%20is%20not%20able%20to%20connect%20to%20outlook%2C%20even%20profile%20is%20newly%20configured%20but%20it%20still%20shows%20older%20email%20address.%3CBR%20%2F%3EWhen%20i%20look%20into%20Microsoft%20365%20Admin%20center-Active%20Users-%3CBR%20%2F%3Ei%20can%20see%20two%20Aliases%20for%20this%20user%20and%20i%20am%20not%20able%20to%20edit%20i%20am%20getting%20the%20message%3C%2FP%3E%3CP%3E%3CSTRONG%3EThis%20user%20is%20synchronized%20with%20your%20local%20Active%20Directory.%20Some%20details%20can%20be%20edited%20only%20through%20your%20local%20Active%20Directory%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3Eglenn.max%40contoso.mail.onmicrosoft.com%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Eglenn.maxwell%40contoso.onmicrosoft.com%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EExperts%20help%20me%20troubleshoot%20this%26nbsp%3B%3CSPAN%3Eas%20i%20dont%20see%20this%20old%20alias%20anywhere%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-899783%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMigration%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOn-Premises%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-910729%22%20slang%3D%22en-US%22%3ERe%3A%20unable%20to%20login%20after%20email%20address%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-910729%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F312187%22%20target%3D%22_blank%22%3E%40maxwell2k19%3C%2FA%3EHave%20you%20renamed%20his%20UserPrincipalName%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESet-MsolUserPrincipalName%20-UserPrincipalName%20%3COLD%20upn%3D%22%22%3E%20-NewUserPrincipalName%20%3CNEW%20upn%3D%22%22%3E%3C%2FNEW%3E%3C%2FOLD%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi Experts

Our company email address policy is firstname.lastname. i have an user whose email address was Glenn.Maxwell@contoso.com
i.e FirstName: Glenn LastName:Maxwell, Alias: Glenn.Maxwell and email address glenn.maxwell@contoso.com.

 

I am using exchange hybrid environment and this user is a office365 user, i create users in exchange onprem and then migrate to cloud.I got a requirement to change the email address to Glenn.Max@contoso.com.

 

So i have changed Last Name to Max and changed alias using the below syntax on onprem and performed AD Sync
Set-RemoteMailbox -Identity glenn.maxwell@contoso.com -Alias glenn.max
then i have renamed email address on exchange onprem to glenn.max@contoso.com and performed AD sync.

 

Now the user is not able to connect to outlook, even profile is newly configured but it still shows older email address.
When i look into Microsoft 365 Admin center-Active Users-
i can see two Aliases for this user and i am not able to edit i am getting the message

This user is synchronized with your local Active Directory. Some details can be edited only through your local Active Directory

glenn.max@contoso.mail.onmicrosoft.com
glenn.maxwell@contoso.onmicrosoft.com

Experts help me troubleshoot this as i dont see this old alias anywhere

1 Reply
Highlighted

@maxwell2k19Have you renamed his UserPrincipalName?

 

Set-MsolUserPrincipalName -UserPrincipalName <old UPN> -NewUserPrincipalName <new UPN>