Add Mr. or Ms. to Microsoft 365 User Display Names
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.
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.
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.
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.
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.
Run: Import-Csv C:\change.csv | ForEach-Object { Update-MgUser -UserId $_.UserPrincipalName -DisplayName $_.DisplayName }
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 Synchronized Display Names in Active Directory
Use this method when on-premises Active Directory is the source of authority for the user accounts.
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.

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.




