Forum Discussion
rename onmicrosoft account
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>
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
- Aug 02, 2017
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.
- David KampAug 02, 2017Brass Contributor
Nuno
To clarify, we do have and use ADConnect.
In the affected users the attributes in the "proxyAddresses" field are correct.
Currently they are not reflected to be correct in the cloud.
I am assuming that after I run the command the next Sync will correct the issue?
David
- Aug 02, 2017
Hi David,
You have to see the logs on AD Connect if they have any conflict sync to cloud.
You can do a manual sync and see what was the changes and if they will be in success you will see in the logs.
Your AD Connect Server is configured has a Hybrid Server ? It must be configured with that option to have that attributes synced.