Changing the order of user profiles in SharePoint has never really worked right from SharePoint 2007 to 2013. If the ordering stops working for you then you can change the order using PowerShell. Follow our guide below on reordering user profile properties on Microsoft SharePoint. If you need information on changes in SharePoint 2019 let us know.

If you run the following command you will see the issue. The Display Order seems to get mixed up and you end up with duplicate Display Order numbers.

Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinueAdd-Type -Path “C:\program files\common files\microsoft shared\web server extensions\15\isapi\Microsoft.Office.Server.dll”

$MySite = Get-SPSite <URL>$context = Get-SPServiceContext $MySite$profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)

$profilemanager.properties | ft name,displayorder

You can export the properties and sort them manually but that will only get you so far.

The only real way to reorder user properties is to use the following command:

$profileManager.Properties.SetDisplayOrderByPropertyName(<PropertyName>,<DisplayOrder>)$profileManager.Properties.CommitDisplayOrder()

And there you have – hopefully you have successfully changed the order of your user profiles in SharePoint but if you have any problems comment below and we’ll look into it!

Get Up To Speed With SharePoint 2019!

Download Our FREE eBook...

 

Download SharePoint 2019 eBook

Comments