We created custom user profile properties in our SharePoint also we can check in our article How to Create Custom Properties in SharePoint.
We want to move those properties to detail section in our SharePoint.
Using the OOTB feature we are moving UP by clicking the UP arrow, but some extend we are unable to move UP.
There is way we can do using power shell.
Run the below script step by step.
$GetMySite = Get-SPSite <MySiteHostURL> #give here mysite url
$Getcontext = Get-SPServiceContext $GetMySite
$UserprofileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($Getcontext)
Here we can get all the properties with ID’s.
We can able to see our custom property with ID 5402.
When we are moving UP using OOTB UP arrow it was unable to go forward because of duplicate id will come when we are moving manually.
$userprofilemanager.properties | ft name,displayorder
Now we are moving this to Detail section and also want to place after the SPS-Interests having the ID 5206.
Now we will move the “Custom property test” after the Interests.
We have to use only unique id so now using “5207"
finally reset the IIS once.
Now we can able to see the “Custom Property Test” in Details section without any issues.