People Search relevance is not optimized when the Active Directory has errors in the manager reporting structure (SharePoint Server)
APPLIES TO: 2013 2016 2019 Subscription Edition SharePoint in Microsoft 365
Rule Name: People Search relevance is not optimized when the Active Directory has errors in the manager reporting structure.
Summary: In Active Directory Domain Services (AD DS), only company leaders should have the Manager property set to NULL. If the Manager property is set to NULL for other users, people search relevance is reduced. To optimize people search relevance, explicitly specify company leaders. People search can then use this information to improve relevance.
Cause: Company leaders have not been explicitly specified.
Resolution: Specify company leaders.
- Verify that you have the following memberships:
securityadmin fixed server role on the SQL Server instance.
db_owner fixed database role on all databases that are to be updated.
Administrators group on the server on which you are running the Microsoft PowerShell cmdlets.
Add memberships that are required beyond the minimums above.
An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.
If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.
Start the SharePoint Management Shell.
At the PowerShell command prompt, type the following command:
$upaProxy = Get-SPServiceApplicationProxy <AppID>
where <AppID> is the GUID of the User Profile service application proxy. For more information, see Get-SPProfileLeader.
Type the following command:
Add-SPProfileLeader -ProfileServiceApplicationProxy $upaProxy -Name "<Domain\UserName> "
where <Domain\UserName> is the user account that you want to add as a leader — for example, Contoso\Joe.Healy. For more information, see Add-SPProfileLeader.
You are prompted to confirm. Type Y to confirm.
Run a full crawl on the content source that contains the start address (URL) of the User Profile application.
Repeat the commands to add more user accounts as company leaders.