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.
Table of Contents
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.

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

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

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

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

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


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.

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
