How To Change UPN In Azure AD

Changing the User Principal Name (UPN) in Azure Active Directory is essential during organizational changes or domain migrations. In this article, I will walk you through all the steps to do this task.

How To Change UPN In Azure AD

Let us dive deep into the two simple approaches to doing this.

  • Approach-1: Using AzurePortal
  • Approach-2: Using Azure PowerShell

Approach-1: Using AzurePortal

To change UPN in Azure AD, follow the steps below.

1. Log in to the Azure Portal.

2. Search for Microsoft Entra ID and click on the search result Microsoft Entra ID, as shown in the screenshot below.

upn in azure ad

3. Expand the Manage tab and click on the Users link to see the lists of available users.

change upn in azure ad

4. Click on the specific user for the one you wish to change the user principal name.

change upn azure ad

5. On the specific user page, click on the Edit properties option as highlighted below.

How to change UPN in Azure AD

6. Enter the new user principal name and click the Save button to save the changes.

How to update UPN in Azure AD

The user’s principal name has been updated successfully, as shown in the screenshot below.

How to modify UPN in Azure AD
How to change UPN in Azure AD

Approach-2: Using Azure PowerShell

You can also use the Azure PowerShell command below to change the Azure UPN.

Set-MsolUserPrincipalName -UserPrincipalName "current name" -NewUserPrincipalName "new name"

Example

Connect-MsolService
Set-MsolUserPrincipalName -UserPrincipalName "abcuser@fewlines4bijuhotmail.onmicrosoft.com" -NewUserPrincipalName "abc@fewlines4bijuhotmail.onmicrosoft.com"

Conclusion

Knowing the methods of changing the UPN in Azure Active Directory is quite important to maintain an organized and efficient identity infrastructure. The steps explained in this article can help you to achieve this.

You may also like following the articles below.

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!