365 Directory Sync Configuration

Hi,

When Active directory synchronises with the 365 cloud, it includes the user with the Microsoft default email address:

me@blah.onmicrosoft.com

How can I have it to synchronise with me@mydomain.com instead? (knowing that if I create a user in the cloud, the primary address is user@mydomain.com)

Thanks
LVL 1
defreyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vasil Michev (MVP)Commented:
Synced accounts are named based on the value of the on-prem UPN. Make sure the domain that you want to use is added as UPN suffix in your AD, and the UPN to your on-prem users is updated accordingly. In the cloud, make sure you have verified the domain.com, otherwise you will end up with @domain.onmicrosoft.com.

If you do not have UPN configured, the tool will use the samAccountName attribute instead. No domain part there, so you will end up with @domain.onmicrosoft.com.

Changing the UPN on prem after the initial sync should update the UPN in the cloud as well, though sometimes I've seen this fail. In any case, you can always update it using the WAAD module for PowerShell and the following cmdlet:

Set-MsolUserPrincipalName -UserPrincipalName user@domain.com -NewUserPrincipalName new@domain.com

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Office 365

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.