Forum Discussion
Robert Bollinger
Apr 04, 2018Iron Contributor
Rename users UPN, Hybrid Enviornment
Hey Team,
Couple of questions here are regarding renaming a users UPN in a Hybrid Environment. I understand you can use the following command:
Set-MsolUserPrincipalName -UserPrincipalNam...
WC_KStill
Jun 12, 2020Brass Contributor
Not sure if you have a solution to this yet but it took me a while.
I ended up moving the user to an OU that wasn't synced.
I ran AD sync
This puts the user in the deleted section at admin.microsoft.com
I restored it making it a cloud only account and and then I modified the mailto:username@domain.onmicrosoft.com address
moved the user back to the original OU
Ran Sync
It fixed it
Before all this I had already modified the username, mail, email, mailnickname, proxyaddresses, targetaddress, and UserPrincipalName in AD but nothing would modify the mailto:username@domain.onmicrosoft.com address.