Changing a “User Name” in Office 365 when Synced with Active Directory

I recently had an issue in an environment where Office 365 was being synced with AD and a user that was renamed in AD was not getting fully synced over to the cloud. Office 365 was picking up the new name and updated email address but not the “User Name”.

You are not able to modify this field using the GUI interface, but fortunately you can manually set this field using the PowerShell command below.

Set-MsolUserPrincipalName -UserPrincipalName [CurrentUPN] -NewUserPrincipalName [NewUPN]

More details at


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s