SOLVED

Change alias name to new user

%3CLINGO-SUB%20id%3D%22lingo-sub-228021%22%20slang%3D%22en-US%22%3EChange%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228021%22%20slang%3D%22en-US%22%3E%3CP%3EAn%20user%20has%20mailbox%20on%20office%20365%20with%20exchange%20online%20license%20%2C%20I%20Changed%20user%20name%20and%20all%20data%20of%20that%20user%20to%20other%20user%20%2C%20but%20after%20sync%20with%20on-premise%20server%20all%20data%20changed%20except%20alias%20name%20still%20had%20alias%20name%20of%20old%20user%20.%3C%2FP%3E%3CP%3EHow%20can%20i%20change%20alias%20name%20to%20new%20user%3F%3F%3F%3C%2FP%3E%3CP%3EThanks%20in%20advance%20....%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-228021%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-229354%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229354%22%20slang%3D%22en-US%22%3E%3CP%3EDo%20you%20actually%20need%20that%20alias%3F%20If%20so%2C%20then%20delete%20this%20smtp%20value%20and%20create%20new%20one%20using%20your%20real%20domain.%20Not%20onmicrosoft.com%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-229269%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229269%22%20slang%3D%22en-US%22%3E%3CP%3EPlease%20look%20at%20these%20files%20of%20that%20user%20.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-229238%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229238%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20exactly%20have%20you%20changed%20everything%20for%20this%20user%2C%20step%20by%20step.%20Say%3A%201)%20renamed%20user%20in%20AD%20changing%20its%20name%2C%20last%20name%2C%20display%20name%202)%20changed%20email%20in%20AD%20profile%203)%20changed%20SMTP%20and%20smtp%20values%20in%20Proxy%20Addressses%20in%20Attribute%20Editor...%20so%20on.%20Also%20have%20you%20used%20real%20domain%20for%20both%20SMTP%20and%20smtp%20values%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-229191%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229191%22%20slang%3D%22en-US%22%3EI've%20added%20some%20details%20to%20this%20topic%2C%20I%20did%20not%20add%20it%20in%20a%20previous%20thread%2C%20and%20when%20a%20real%20domain%20was%20added%2C%20the%20basic%20email%20problem%20was%20resolved%20but%20alias%20didn't%20resolved%20.%3CBR%20%2F%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228928%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228928%22%20slang%3D%22en-US%22%3E%3CP%3EWhy%20do%20you%20create%20a%20new%20thread%20for%20the%20same%20question%3F%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAdmin-Center%2FHow-to-change-Alias-name-in-Office-365%2Fm-p%2F222465%23M1252%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAdmin-Center%2FHow-to-change-Alias-name-in-Office-365%2Fm-p%2F222465%23M1252%3C%2FA%3E%20The%20last%20few%20replies%20told%20you%20to%20use%20your%20real%20domain%20name%20when%20specifying%20an%20alias%2C%20not%20some%20random%20domain%20name%20or%20onmicrosoft.com.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228815%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228815%22%20slang%3D%22en-US%22%3EHi%20Adam%20%2C%20kindly%20be%20informed%20that%20when%20run%20those%20commands%20occurred%20the%20following%20error%3CBR%20%2F%3EGet-Mailbox%20%3A%20The%20term%20'Get-Mailbox'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%2C%20function%2C%20script%20file%2C%20or%20operable%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228150%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228150%22%20slang%3D%22en-US%22%3EIf%20that%20is%20the%20case%2C%20I%20would%20think%20there%20is%20clearly%20some%20value%20that%20is%20dictating%20that%20to%20your%20account%20(although%20I%20am%20unsure%20which%20one%20it%20is).%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20I%20were%20in%20your%20shoes%2C%20i%20would%20do%20an%20export%20of%20the%20get-msolUser%20and%20get-mailbox%20attributes.%3CBR%20%2F%3E%3CBR%20%2F%3EGet-Mailbox%20%22User%40domain.com%22%20%7C%20fl%3CBR%20%2F%3EGet-MsolUser%20-Userprincipalname%20%22User%40domain.com%22%20%7C%20fl%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20go%20through%20the%20output%20and%20look%20for%20values%20that%20match%20the%20alias%20you%20are%20seeing%20(or%20the%20email%20address).%3CBR%20%2F%3E%3CBR%20%2F%3EFrom%20there%2C%20knowing%20the%20attributes%20that%20still%20have%20the%20alias%20should%20give%20you%20more%20information%20on%20how%20to%20solve%20this%20through%20edits%20in%20AD.%3CBR%20%2F%3E%3CBR%20%2F%3ESorry%20it%20is%20not%20a%20direct%20solution%2C%20but%20that%20is%20the%20steps%20I%20would%20take%20to%20troubleshoot%20the%20issue.%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228126%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228126%22%20slang%3D%22en-US%22%3EI%20followed%20your%20steps%20but%20Unfortunately%20%2Cnot%20working%20.!!!!!!!!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228072%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228072%22%20slang%3D%22en-US%22%3E%3CP%3ECheck%20the%20Alias%2C%20Mail%2C%20proxyaddresses...%20You%20will%20need%20to%20make%20sure%20%22Advanced%20Features%22%20is%20checked.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMake%20sure%20under%20proxyaddresses%20you%20have%20an%20SMTP%20infront%20of%20the%20one%20you%20want.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20it%20still%20doesnt%20work%2C%20I%20would%20move%20that%20user%20account%20out%20of%20scope%2C%20run%20a%20dir%20sync%2C%20move%20it%20back%20in%20scope%20and%20run%20another%20one.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20will%20temporarily%20delete%20the%20mailbox%2C%20but%20restore%20everything%20as%20soon%20as%20the%20second%20dir%20sync%20is%20run.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228038%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228038%22%20slang%3D%22en-US%22%3EI%20applied%20that%20step%20but%20not%20changed%20.%3CBR%20%2F%3Eif%20you%20can%20%2C%20any%20other%20method%20....%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228027%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20alias%20name%20to%20new%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228027%22%20slang%3D%22en-US%22%3EYou%20want%20the%20default%20SMTP%20address%20changes%20to%20match%20new%20user%20%3F%20You%20would%20do%20this%20in%20EMC%20on%20prem.%20You%20can%20use%20ADSI%20edit%20to%20amend%20the%20SMTP%20value%20as%20well.%3CBR%20%2F%3E%3CBR%20%2F%3ESomething%20to%20read%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fie%2Fen-US%2Fe9ea6f10-dfd7-499a-8452-97e05863fe9d%2Fuser-name-and-alias-changes%3Fforum%3DExch2016Adm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fie%2Fen-US%2Fe9ea6f10-dfd7-499a-8452-97e05863fe9d%2Fuser-name-and-alias-changes%3Fforum%3DExch2016Adm%3C%2FA%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

An user has mailbox on office 365 with exchange online license , I Changed user name and all data of that user to other user , but after sync with on-premise server all data changed except alias name still had alias name of old user .

How can i change alias name to new user???

Thanks in advance .... 

11 Replies
Highlighted
You want the default SMTP address changes to match new user ? You would do this in EMC on prem. You can use ADSI edit to amend the SMTP value as well.

Something to read:
https://social.technet.microsoft.com/Forums/ie/en-US/e9ea6f10-dfd7-499a-8452-97e05863fe9d/user-name-...
Highlighted
I applied that step but not changed .
if you can , any other method ....
Highlighted

Check the Alias, Mail, proxyaddresses... You will need to make sure "Advanced Features" is checked.

 

Make sure under proxyaddresses you have an SMTP infront of the one you want.

 

If it still doesnt work, I would move that user account out of scope, run a dir sync, move it back in scope and run another one.

 

It will temporarily delete the mailbox, but restore everything as soon as the second dir sync is run.

 

Adam

Highlighted
I followed your steps but Unfortunately ,not working .!!!!!!!!
Highlighted
If that is the case, I would think there is clearly some value that is dictating that to your account (although I am unsure which one it is).

If I were in your shoes, i would do an export of the get-msolUser and get-mailbox attributes.

Get-Mailbox "User@domain.com" | fl
Get-MsolUser -Userprincipalname "User@domain.com" | fl

Then go through the output and look for values that match the alias you are seeing (or the email address).

From there, knowing the attributes that still have the alias should give you more information on how to solve this through edits in AD.

Sorry it is not a direct solution, but that is the steps I would take to troubleshoot the issue.

Adam
Highlighted
Hi Adam , kindly be informed that when run those commands occurred the following error
Get-Mailbox : The term 'Get-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable
Highlighted

Why do you create a new thread for the same question? https://techcommunity.microsoft.com/t5/Admin-Center/How-to-change-Alias-name-in-Office-365/m-p/22246... The last few replies told you to use your real domain name when specifying an alias, not some random domain name or onmicrosoft.com.

Highlighted
I've added some details to this topic, I did not add it in a previous thread, and when a real domain was added, the basic email problem was resolved but alias didn't resolved .
Thanks
Highlighted

How exactly have you changed everything for this user, step by step. Say: 1) renamed user in AD changing its name, last name, display name 2) changed email in AD profile 3) changed SMTP and smtp values in Proxy Addressses in Attribute Editor... so on. Also have you used real domain for both SMTP and smtp values? 

Highlighted

Please look at these files of that user . 

Highlighted
Best Response confirmed by Walid Fawzy (Occasional Contributor)
Solution

Do you actually need that alias? If so, then delete this smtp value and create new one using your real domain. Not onmicrosoft.com