SOLVED
Home

onmicrosoft.com accounts

%3CLINGO-SUB%20id%3D%22lingo-sub-8272%22%20slang%3D%22en-US%22%3Eonmicrosoft.com%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8272%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20looking%20to%20understand%20more%20about%20the%20onmicrosoft.com%20domain%20in%20O365%20tenants%2C%20which%20I've%20seen%20some%20info%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FAbout-your-initial-onmicrosoft-com-domain-in-Office-365-b9fc3018-8844-43f3-8db1-1b3a8e9cfd5a%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20We%20are%20looking%20to%20cleanup%20users%20in%20our%20tenant%20that%20was%20created%20quite%20some%20time%20ago.%20%26nbsp%3BWe%20have%20hundreds%20of%20users%20with%20the%20onmicrosoft.com%20instead%20of%20our%20company's%20domain%20that%20we've%20since%20added.%20%26nbsp%3BHow%20have%20others%20done%20this%20cleanup%3F%20%26nbsp%3BDo%20you%20mass%20delete%20all%20users%20with%20the%20onmicrosoft.com%20emails%3F%20%26nbsp%3BIs%20it%20correct%20to%20assume%20that%20all%20the%20.onmicrosoft.com%20accounts%20were%20added%20prior%20to%20us%20adding%20our%20company's%20domain%3F%20%26nbsp%3BWhat%20happens%20when%20you%20swith%20the%20default%20from%20onmicrosoft.com%20to%20your%20companys%20primary%20domain%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-305919%22%20slang%3D%22en-US%22%3ERe%3A%20onmicrosoft.com%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-305919%22%20slang%3D%22en-US%22%3E%3CP%3EHEY%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-12163%22%20slang%3D%22en-US%22%3ERE%3A%20onmicrosoft.com%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-12163%22%20slang%3D%22en-US%22%3EYou%20can%20change%20these%20accounts%20to%20your%20public%20routable%20UPN%20which%20is%20normally%20the%20users%20email%20address.%20If%20you%20run%20the%20following%20command%20to%20change%20this%20using%20PowerShell%20Set-MsolUserPrincipalName%20-UserPrincipalName%20test.me%40onmicrosoft.com%20-NewUserPrincipalName%20test.me%40primarysmtp.com%20or%20if%20you%20want%20to%20change%20lots%20of%20users%20you%20can%20import%20from%20a%20CSV%20file%20the%20list%20of%20addresses%20you%20want%20changed%20and%20changed%20to%20import-csv%20c%3A%5Ctemp%5Cnames.csv%20%7C%20foreach%7BSet-MsolUserPrincipalName%20-UserPrincipalName%20%24_.Users%20-NewUserPrincipalName%20%24_.Email%20%7D%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8656%22%20slang%3D%22en-US%22%3ERe%3A%20onmicrosoft.com%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8656%22%20slang%3D%22en-US%22%3E%3CP%3Emy%20current%20client%20is%20using%20onmicosoft.com%20accounts%20for%20administrative%20purposes.%20Their%20admins%20use%20their%20domain%20accounts%20for%20day-to-day%20activities%20and%20when%20they%20need%20to%20do%20admin%20tasks%2C%20they%20open%20an%20in-private%20session%20to%20login%20with%20their%20onmicrosoft.com%20account.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8411%22%20slang%3D%22en-US%22%3ERE%3A%20onmicrosoft.com%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8411%22%20slang%3D%22en-US%22%3Ea%20lot%20of%20companys%20start%20with%20Onmicrosoft.com%20accounts%20and%20after%20they%20add%20the%20domain%20they%20change%20it.%20you%20should%20check%20if%20you%20did%20not%20add%20aliasses%20to%20the%20onmicrosoft.com%20accounts%20before%20deleteing.%20In%20another%20case%20they%20use%20the%20Onmicrosoft.com%20accounts%20for%20admin%20accounts%20so%20it%20is%20clear%20who%20is%20a%20admin.%20kr%2C%20Paul%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8287%22%20slang%3D%22en-US%22%3ERe%3A%20onmicrosoft.com%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8287%22%20slang%3D%22en-US%22%3EThe%20.onmicrosoft.com%20users%20were%20either%20created%20before%20you%20synced%20your%20domain%20or%20created%20manually%20in%20O365.%20You%20can%20switch%20their%20UPN%20to%20be%20your%20corporate%20domain%20instead%20of%20.onmicrosoft.com%20and%20users%20should%20then%20be%20able%20to%20login%20with%20their%20corporate%20credentials%20(assuming%20you%20are%20doing%20some%20form%20of%20AD%20Connect%20or%20Sync).%20The%20one%20limitation%20as%20far%20as%20I%20know%20is%20that%20after%20switching%20the%20UPN%20suffix%20their%20profile%20properties%20won't%20sync%20fully%20since%20the%20pre-existing%20properties%20will%20be%20preserved.%20At%20least%20that%20is%20what%20I've%20seen%20in%20practice.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8273%22%20slang%3D%22en-US%22%3ERe%3A%20onmicrosoft.com%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8273%22%20slang%3D%22en-US%22%3Etest%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-634258%22%20slang%3D%22en-US%22%3ERe%3A%20onmicrosoft.com%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-634258%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F4668%22%20target%3D%22_blank%22%3E%40Erin%20Scupham%3C%2FA%3E%26nbsp%3B%20%26nbsp%3Bwhat%20am%20I%20doing%3F%26nbsp%3B%20All%20I%20am%20attempting%20to%20do%20is%20get%20things%20set%20up%20properly%20for%20O365%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-634261%22%20slang%3D%22en-US%22%3ERe%3A%20onmicrosoft.com%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-634261%22%20slang%3D%22en-US%22%3E%3CP%3Eneed%20help%20with%20getting%20o365%20set%20up%20properly%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F4668%22%20target%3D%22_blank%22%3E%40Erin%20Scupham%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Erin Scupham
Regular Visitor

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.  We have hundreds of users with the onmicrosoft.com instead of our company's domain that we've since added.  How have others done this cleanup?  Do you mass delete all users with the onmicrosoft.com emails?  Is it correct to assume that all the .onmicrosoft.com accounts were added prior to us adding our company's domain?  What happens when you swith the default from onmicrosoft.com to your companys primary domain?

7 Replies
test
Solution
The .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.
a lot of companys start with Onmicrosoft.com accounts and after they add the domain they change it. you should check if you did not add aliasses to the onmicrosoft.com accounts before deleteing. In another case they use the Onmicrosoft.com accounts for admin accounts so it is clear who is a admin. kr, Paul

my current client is using onmicosoft.com accounts for administrative purposes. Their admins use their domain accounts for day-to-day activities and when they need to do admin tasks, they open an in-private session to login with their onmicrosoft.com account.

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 }

@Erin Scupham   what am I doing?  All I am attempting to do is get things set up properly for O365

need help with getting o365 set up properly

@Erin Scupham 

Related Conversations
Accounts limit in Edge for iOS and iPadOS
Ole Thomsen in Discussions on
3 Replies
Customize user profile in Teams
arielmw2 in Microsoft Teams on
2 Replies
AD groups in update management (azure automation accounts)
PatrickF11 in Azure on
1 Replies
Move tasks to another account
bpatterson in Microsoft To Do on
0 Replies