title: How to change user principal name on Azure AD
body: <p>I'm trying to change the user principal name on my Azure AD user using a PowerShell command Set-MsolUserPrincipalName that I found in the Microsoft documentation <a href="https://docs.microsoft.com/en-us/powershell/module/msonline/set-msoluserprincipalname?view=azureadps-1.0" rel="nofollow noreferrer">here</a>. This works fine and changes the user principal name, but it also changes the email property to the same value as well.</p>
  
  <p>Example command:</p>
  
  <pre><code>Set-MsolUserPrincipalName -UserPrincipalName "davidc@contoso.com" -NewUserPrincipalName "davidchew@contoso.com"
  </code></pre>
  
  <p>Is there another way to change the user principal name without affecting the email of the user?</p>