Forum Discussion
Erin Scupham
Aug 31, 2016Copper Contributor
onmicrosoft.com accounts
Hi, looking to understand more about the onmicrosoft.com domain in O365 tenants, which I've seen some info here. We are looking to cleanup users in our tenant that was created quite some time ago. W...
- Aug 31, 2016The .onmicrosoft.com users were either created before you synced your domain or created manually in O365. You can switch their UPN to be your corporate domain instead of .onmicrosoft.com and users should then be able to login with their corporate credentials (assuming you are doing some form of AD Connect or Sync). The one limitation as far as I know is that after switching the UPN suffix their profile properties won't sync fully since the pre-existing properties will be preserved. At least that is what I've seen in practice.
Patrick Yore
Sep 13, 2016Copper Contributor
You can change these accounts to your public routable UPN which is normally the users email address. If you run the following command to change this using PowerShell Set-MsolUserPrincipalName -UserPrincipalName test.me@onmicrosoft.com -NewUserPrincipalName test.me@primarysmtp.com or if you want to change lots of users you can import from a CSV file the list of addresses you want changed and changed to import-csv c:\temp\names.csv | foreach{Set-MsolUserPrincipalName -UserPrincipalName $_.Users -NewUserPrincipalName $_.Email }