Changing the User Principal Name in Office 365

admin January 19th, 2013

office 365

This applies to Office 365 instances where you are NOT using ADFS for directory federation.

This DOES work for Directory Synchronisation scenarios and plain old no-AD scenarios.

From any Windows 2008 or Windows 7 (and up) perform the following:

office 365

  1. Connect to Microsoft Online Services by using the Microsoft Online Services Module for Windows PowerShell
  2. Run the following PowerShell cmdlets
    Set-MsolUserPrincipalName -UserPrincipalName [CurrentUPN] -NewUserPrincipalName [NewUPN]


    Set-MsolUserPrincipalName -UserPrincipalName -NewUserPrincipal

If you need further assistance, please don’t hesitate to reach out to us on 1800 66 44 56 or submit your questions here



Matt Narayan | Head of Professional Services | FiveP

About the author: With over 15 years’ experience working in the technology industry, Matt is an experienced professional business analyst and brings a wealth of capability to any project.

Comments (0)

Can you relate
to any of these