Create users in bulk from a CSV file

Azure Portal, Hands On10 minutesFreeSteps checked 13 November 2026By Cloud Hands On

In this task you'll create several users at once from a spreadsheet.

For more than a handful of new starters, Bulk create reads a CSV file and creates every user in one go. You download a template, fill it in, upload it, and check the results.

Bulk invite (for guests), bulk delete and download (an export of all users) work the same way.

Example. SS Kaiser opens a new store with twelve staff. HR sends a spreadsheet; the service desk copies it into the Entra template and creates all twelve accounts in two minutes, each with a temporary password they must change.

Before you start

You need: User Administrator. Time: 10 minutes.

Where to look

  1. Home
  2. Microsoft Entra ID
  3. Users
  4. Bulk operations
  5. Bulk create

Steps

  1. Open Microsoft Entra ID, then Users.
  2. Select Bulk operations (on a narrow screen it's under the ... button), then Bulk create. In the panel, select Download to get the CSV template.
  3. Open the file. Leave the first two lines alone; from line three, add one user per row: name, user name (ending in your domain), a temporary password, and Block sign in = No.The required columns are marked; leave optional ones empty.
  4. Save it as CSV. Back in Bulk create users, select the folder button under Upload your csv file, choose the file and select Submit.
  5. Open Bulk operation results (Preview) in the Microsoft Entra ID menu (under Monitoring) to check every row succeeded. Failed rows show the reason, such as a user name already taken.

Commands

# The same job in a loop from a CSV (name,upn,password)
while IFS=, read -r NAME UPN PASS; do
  az ad user create --display-name "$NAME" --user-principal-name "$UPN" --password "$PASS" --force-change-password-next-sign-in true
done < starters.csv

Watch out for

Cost
Free.
Security
The file holds temporary passwords: delete it afterwards and make sure people must change them at first sign-in.
Common mistakes
Editing the template's header lines, or saving it in a spreadsheet format instead of CSV.

Clean up

  1. Users
  2. Bulk operations
  3. Bulk delete

Upload a CSV of the test users' names to delete them, or delete each from Users.

Words to know

CSV
A plain spreadsheet file with commas between the columns.
Bulk operation results
Where each bulk job's success or failure is listed, row by row.

Tick off each step and track your progress in the guide.

Open this task in Azure Portal, Hands On

Keep going