Bulk Update Entra ID Users
In this guide, you will learn how to bulk update Entra ID users quickly using PowerShell and the Microsoft Admin Center.
Bulk updating Entra ID users is important when you need to make changes to many user accounts at once, like updating job titles, departments, or display names. This saves time and reduces errors compared to editing each user manually. This is especially useful during company reorganizations, onboarding, or when syncing with HR data.
Bulk Update Entra ID Users with PowerShell
Section titled “Bulk Update Entra ID Users with PowerShell”In this example, the users job title and display name will be updated.
-
Install Microsoft Graph PowerShell (If not already installed)
Terminal window Install-Module Microsoft.Graph -Scope CurrentUser -
Sign into Microsoft Graph.
Terminal window Connect-MgGraph -Scopes "User.ReadWrite.All" -
Create a CSV file with the user details you want to update.
CSV Example
-
Run the below PowerShell script to update the users (update the script to the properties you want to update and the path you saved the CSV file to)
Terminal window $users = Import-Csv "C:\Path\To\users.csv"foreach ($user in $users) {Update-MgUser -UserId $user.UserPrincipalName -DisplayName $user.DisplayName -JobTitle $user.JobTitleWrite-Host "Updated user:" $user.UserPrincipalName}
Bulk Update Entra ID Users through Admin Center
Section titled “Bulk Update Entra ID Users through Admin Center”-
Log into the Microsoft 365 Admin Center
-
On the left side under “Admin Centers” select Identity.