question on office 365

Dear experts,

I just joined a company that has office 365 and I am network guy but will be helping with Microsoft stuff and need some guidance.

first thing I noticed is that our domain is for example but users are logging into office365 cloud using

What suggestions do you have to fix that? I want everyone to login user their domain account which is I have admin rights to the portal but don't want to make a change with out expert advice.
Habib ZakariaNetwork Solutions ArchitectAsked:
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:
You need to verify the domain in Office 365 if you havent done so already. After that, you can change the UPN by going to the Users -> Active page, double-clicking the user and going to the Details page.

If you have lots of users you can automate this with PowerShell. Or better yet, use directory synchronization so that the attributes from the on-prem AD are synced to O365. It can also allow you to use the same password, or deploy Single-Sign on solution. Here's an example article:

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
Habib ZakariaNetwork Solutions ArchitectAuthor Commented:
I thought it is simple as just renaming the domain in the portal and make sure the users use the same password for both AD and Microsoft cloud.
Habib ZakariaNetwork Solutions ArchitectAuthor Commented:
Is there another way.
Vasil Michev (MVP)Commented:
And what's from stopping you from renaming that domain to or similar? You can only use domains you own, thus the verification process. As for passwords, the Office 365 password policy ( will most likely be different compared to the on-prem one, so while the users might have the same passwords now, they will most certainly end up with different ones in the long run.
Mark GalvinManaging Director / Principal ConsultantCommented:

What you need to do is change the Default Domain Name in Office 365:

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.