Forum Discussion
rename onmicrosoft account
We have a few users that when renaming thier AD account the Cloud properties do not change.
Example:
Sally Person (sallyperson@mydomain.com = SMTP: sallyperson@mydomin.com smtp: sallyperson@mydomain.onmicrosoft.com)
Sally gets Married.
We rename her AD account to Sally Married and now the email address is sallymarried@mydomain.com
The resulting happens, SMTP:sallymarried@mydomain.com smtp:sallymarried@mydomain.onmicrosoft.com
I was told I can run on my ADConnect server this command:
Set-MsolDirSyncFeature -Feature SynchronizeUpnForManagedUsers -Enable $true
Will this fix my issue to rename the Tenneant portion to match the new Username?
What issues might this command cause since it it a situation where it cannot be Undone.
8 Replies
- David KampBrass Contributor
So to recap...
If I run this command:
Set-MsolDirSyncFeature -Feature SynchronizeUpnForManagedUsers -Enable $true
There are not unforseen issues it may create?
Has anyone actually ran it?
Did it cause any problems?
Thank you!
- Brent EllisSilver ContributorAs mentioned previously, we have run that specific code and have encountered no unforeseen issues.
Hi David,
After you change on-premises you will need to change the UPN on Office 365.
You can do using powershell:
$Office365Cred=Get-Credential
Connect-MsolService -Credential $Office365Cred
set-msoluserprincipalname -newuserprincipalname <new_user_principal_name> -userprincipalname <Old_UserPrincipalName>- David KampBrass Contributor
Nuno
Can you explain? We have AD on premis Only, but Office 365 is totaly cloud, no on-premis exchange.
Are you saying that on only the accounts that have the mismatch I run that script to remname the mydomain.onmicrosoft.com? because that makes sense to have to manually fix them.
David
Hi David,
If you have AD Connect, you have to change the UPN on your AD, synd and then run the powershell command to change the upn login on Office 365.
- Brent EllisSilver ContributorYes, we did the same thing previously, no negative impact in our environment.