Link to home
Start Free TrialLog in
Avatar of Lanee Kirby
Lanee KirbyFlag for United States of America

asked on

change the User ID that is being used to login to Office 365

I need to change the User ID that is being used to login to Office 365.  We have an on site Exchange 2010 server and have migrated to Office 365.  Our current domain and email address is user@abc.com and Microsoft created us a domain called 123.com.  My users really have two email addresses, user@abc.com and user@123.com.  This is fine and we are using AD synchronization which is working fine.  

However, it makes my users log into their accounts with the user@123.com account when accessing email or 365 in the cloud.  But at work in our domain, they are accustomed to using user@abc.com.  Is their a way I can make it allow them to login with the other account id instead of the one Microsoft created?

Thanks
Lanee
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do you have the abc.com domain added to O365, and if not, can you add it?
Avatar of Lanee Kirby

ASKER

We do own the ABC.com domain and I have added it O365 and it is listed as the (default) domain.  However, we have always (about a year now) had to login to O365 with our 123.com login account name.  I read articles about what your suggestion is supposed to do.  Help me understand please.  In my User profile account in AD on site, their User profile name is User @ Local.ABC.com. (long, long ago, when my domain was created, the person put the name local in it).  In their AD profile it lists their email address as User@ABC.com.

In O365, it lists both addresses, User@ABC.com and User@123.com.  It lists User@ABC.com as the primary but it lists the User profile as User @ 123.com.

Question is The powershell command is supposed to change the User ID in O365, not locally in my AD, since it is already correct?  I cannot manually change it in O365 even though their is a drop down box.

Thanks for any clarification.

Lanee
Email addresses dont matter here, only the UserPrincipalName. You can change it in O365 directly, via the PowerShell cmdlet I linked above.

The on-premises and O365 UPNs dont need to match, although it's a good practice to keep them in sync.
Thank you for your assistance.  The command Set-MsolUserPrincipalName did not make the necessary changes that I needed.  It actually failed saying it did not know what that parameter meant.  
However, upon searching some more, I found this command that did exactly what I needed.
Set-Mailbox "xxxxxxx@123.com" -MicrosoftOnlineServicesID "xxxxxxx@abd.com"
Avatar of jkimzlg
jkimzlg

wow, thanks Lanee.... that worked for me.