Forum Discussion
vand3rlinden
Sep 24, 2019Brass Contributor
User get onmicrosoft.com instead of default domain
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 a...
Sep 24, 2019
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
Normally with many users I’d do this with powershell
- vand3rlindenSep 24, 2019Brass Contributor
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?
- Sep 24, 2019Yeah, bulk update existing users with a script and make a script running for each new user
- vand3rlindenSep 24, 2019Brass ContributorAlright, thanks guys for helping me out 🙂
- Sep 24, 2019Yes, 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