How to use Update-AzADUser command

In this Azure PowerShell article, we will discuss the syntax and usage of the Update-AzADUser PowerShell command with examples.

Update-AzADUser

This PowerShell command can help you to update the entities in the Azure Active Directory users.

Syntax

Below is the syntax of the Update-AzADUser PowerShell command.

Update-AzADUser
 -UPNOrObjectId <String>

Let’s discuss an example of how to use the Update-AzADUser PowerShell command.

Example

You can execute the below PowerShell command that will update the Display name of the specified Active Directory user. In this case, it will update the user’s Display name “tsinfouser” to “tsinfonewuser”.

Update-AzADUser -ObjectId 5e013a07-e22a-4d46-a6be-ca68b893b6df -DisplayName tsinfonewuser

After executing the above PowerShell command I got the below expected output.

Update-AzADUser

To cross-check the Display name of the Azure Active Directory user, I have executed the Get-AzADUser PowerShell command. I can see the Display name has been changed successfully. Check out the screenshot below.

Update-AzADUser PowerShell

Final Thoughts

In this Azure PowerShell article, we discussed the syntax and usage of the Update-AzADUser PowerShell command with examples. Thanks for reading this article !!!