Others

Add Mr. or Ms. to Microsoft 365 User Display Names

Kushani NimanthikaKushani Nimanthika Nov 22, 2026 868 views

Question details

Add prefixes such as Mr. or Ms. to Microsoft 365 user display names for both cloud-only and synchronized accounts.

Product
Microsoft 365 and Microsoft Entra ID
Device & OS
not provided
Scenario
An administrator needs to update display names for accounts that are managed either in the cloud or in on-premises Active Directory.
Observed behavior
User display names should show the desired prefixes after the changes are applied and, for synchronized accounts, propagated to Microsoft 365.
Before you start

Identify which accounts are cloud-only and which are synchronized from on-premises Active Directory. Confirm that you have the appropriate permissions to update each group of accounts.

Solution 1Recommended

Update Cloud-Only Display Names with Microsoft Graph PowerShell

Use a CSV file to apply complete display names, including prefixes, to multiple cloud-only accounts.

Microsoft Graph PowerShell replaces the retired MSOnline PowerShell module. The CSV should contain the complete desired display name for each user, not just the prefix.

1
Prepare the CSV

Create a file such as C:\change.csv with the headers UserPrincipalName and DisplayName. For example, use jane@example.com,Ms. Jane Doe as a data row.

2
Install and connect to Microsoft Graph

In PowerShell, run Install-Module Microsoft.Graph -Scope CurrentUser if needed. Then run Connect-MgGraph -Scopes "User.ReadWrite.All" and sign in with an appropriately privileged administrator account; consent may be required.

3
Apply the display names

Run: Import-Csv C:\change.csv | ForEach-Object { Update-MgUser -UserId $_.UserPrincipalName -DisplayName $_.DisplayName }

4
Verify the changes

Open the Microsoft Entra admin center and go to Identity > Users > All users. Open an updated cloud-only account and check its display name.

Update Cloud-Only Display Names with Microsoft Graph PowerShell
Use the correct source of authority: For accounts synchronized from on-premises Active Directory, update the display name on-premises instead of using this cloud-only procedure.
Free Microsoft Office alternative

Prepare Display Name Lists with WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with documents and spreadsheets. Use WPS Spreadsheet to prepare a display name list for export to CSV; directory updates still require Microsoft administration tools.

Organize user principal names and prefixed display names in a spreadsheetWork with Microsoft Office formats such as XLSX, DOCX, and PPTXUse a familiar interface that makes moving existing Office files easierOpen and edit files with a lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can I update synchronized users directly in Microsoft Entra ID?

For users whose display names are managed in on-premises Active Directory, change the Display name field in Active Directory Users and Computers and allow directory synchronization to propagate the update.

What columns should the CSV file contain?

Use UserPrincipalName and DisplayName as the headers. Each DisplayName value should include the complete desired name, such as Mr. Alex Smith.

Can I still use Set-MsolUser to update display names?

The MSOnline PowerShell module has been retired. Use Microsoft Graph PowerShell and Update-MgUser for cloud-only accounts instead.

Why has a synchronized display name not changed in Microsoft 365 yet?

The on-premises change may not have synchronized yet. Check your synchronization service, then verify the account under Identity > Users > All users in the Microsoft Entra admin center.