Home

User get onmicrosoft.com instead of default domain

%3CLINGO-SUB%20id%3D%22lingo-sub-872535%22%20slang%3D%22en-US%22%3ERe%3A%20User%20get%20onmicrosoft.com%20instead%20of%20default%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-872535%22%20slang%3D%22en-US%22%3EWithout%20exchange%20Onpremises%20which%20sets%20this%20I%20believe%20you%20need%20to%20set%20the%20primary%20email%20address%20in%20AD%20(mail%2Fproxyaddresses%20attribute%20)%20manually%3CBR%20%2F%3ENormally%20with%20many%20users%20I%E2%80%99d%20do%20this%20with%20powershell%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-872547%22%20slang%3D%22en-US%22%3ERe%3A%20User%20get%20onmicrosoft.com%20instead%20of%20default%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-872547%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72542%22%20target%3D%22_blank%22%3E%40adam%20deltinger%3C%2FA%3E%26nbsp%3B%20Thank%20you%20for%20the%20fast%20reply.%20You%20are%20right%20we%20don't%20have%20on-premises%20exchange%20online.%20Is%20it%20possible%20to%20let%26nbsp%3B%20Active%20Directory%20run%20a%20script%20automatically%20(after%20creating%20a%20new%20user)%20so%20he%20can%20set%20the%20primary%20address%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-872586%22%20slang%3D%22en-US%22%3ERe%3A%20User%20get%20onmicrosoft.com%20instead%20of%20default%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-872586%22%20slang%3D%22en-US%22%3EYes%2C%20it%20is%20and%20that's%20the%20way%20to%20go%3A%20you%20need%20to%20be%20sure%20your%20AD%20is%20well%20prepared%20in%20terms%20of%20user%20attributes%20to%20make%20the%20sync%20in%20the%20right%20way%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-873060%22%20slang%3D%22en-US%22%3ERe%3A%20User%20get%20onmicrosoft.com%20instead%20of%20default%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-873060%22%20slang%3D%22en-US%22%3EYeah%2C%20bulk%20update%20existing%20users%20with%20a%20script%20and%20make%20a%20script%20running%20for%20each%20new%20user%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-872518%22%20slang%3D%22en-US%22%3EUser%20get%20onmicrosoft.com%20instead%20of%20default%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-872518%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20got%20an%20environment%20with%20a%20local%20AD%2C%20synced%20with%20AAD.%20If%20I%20create%20a%20user%20on%20the%20local%20AD%20with%20User.LogonName%40mydomain.com%20and%20sync%20this%20with%20AAD.%20The%20user%20get%20the%20right%20UPN%20in%20AAD%2C%20also%20in%20admin.microsoft.com%20-%26gt%3B%20users.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMydomain.com%20is%20default.%20But%20only%20in%20Exchange%20Online%20the%20user%20get%26nbsp%3BUser.LogonName%40mydomain.onmicrosoft.com.%20I%20can%20quick%20fix%20that%20to%20fill%20the%20Mail%20attribute%20in%20the%20Local%20AD%20and%20sync%20this%20again.%20But%20I%20want%20to%20fix%20it%20that%20if%20I%20create%20a%20user%2C%20he%20get%20the%20right%20email%20domain%20in%20Exchange%20Online.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20under%20EXO%20-%26gt%3B%20accepted%20domain%20is%20mydomain.com%20as%20default.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20guys%20help%20me%20out%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERicardo%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-872518%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%20Connect%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-873223%22%20slang%3D%22en-US%22%3ERe%3A%20User%20get%20onmicrosoft.com%20instead%20of%20default%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-873223%22%20slang%3D%22en-US%22%3EAlright%2C%20thanks%20guys%20for%20helping%20me%20out%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E
R1cardo92
Occasional Contributor

Hi,

 

I got an environment with a local AD, synced with AAD. If I create a user on the local AD with User.LogonName@mydomain.com and sync this with AAD. The user get the right UPN in AAD, also in admin.microsoft.com -> users.

 

Mydomain.com is default. But only in Exchange Online the user get User.LogonName@mydomain.onmicrosoft.com. I can quick fix that to fill the Mail attribute in the Local AD and sync this again. But I want to fix it that if I create a user, he get the right email domain in Exchange Online.

 

Also under EXO -> accepted domain is mydomain.com as default.

 

Please guys help me out,

 

Thanks in advance

 

Ricardo

 

 

5 Replies
Without exchange Onpremises which sets this I believe you need to set the primary email address in AD (mail/proxyaddresses attribute ) manually
Normally with many users I’d do this with powershell

@adam deltinger  Thank you for the fast reply. You are right we don't have on-premises exchange online. Is it possible to let  Active Directory run a script automatically (after creating a new user) so he can set the primary address? 

Yes, it is and that's the way to go: you need to be sure your AD is well prepared in terms of user attributes to make the sync in the right way
Yeah, bulk update existing users with a script and make a script running for each new user
Alright, thanks guys for helping me out :)
Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies