Active Directory 發生管理員報告結構的錯誤,人員搜尋相關性無法進行最佳化 (SharePoint Server)People Search relevance is not optimized when the Active Directory has errors in the manager reporting structure (SharePoint Server)

摘要: 了解如何為 SharePoint Server 2016 和 SharePoint 2013 解決 SharePoint Health Analyzer 規則「當管理員報告結構中的 Active Directory 發生錯誤時,人員搜尋關聯性沒有最佳化」。Summary: Learn how to resolve the SharePoint Health Analyzer rule "People Search relevance is not optimized when the Active Directory has errors in the manager reporting structure", for SharePoint Server 2016 and SharePoint 2013.

規則名稱: 當管理員報告結構中的 Active Directory 發生錯誤時,人員搜尋關聯性沒有最佳化。Rule Name: People Search relevance is not optimized when the Active Directory has errors in the manager reporting structure.

摘要: 在 Active Directory Domain Services (AD DS) 中,只有公司負責人會有 [管理員] **** 屬性設為 NULL。如果其他使用者的 [管理員]**** 屬性設為 NULL,人員搜尋關聯性會降低。若要最佳化人員搜尋關聯性,請明確指定公司負責人。那麼人員搜尋可以使用該資訊提高關聯性。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.

  1. 確認您具備下列成員身分:Verify that you have the following memberships:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。securityadmin fixed server role on the SQL Server instance.

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。db_owner fixed database role on all databases that are to be updated.

    • 正在執行 Microsoft PowerShell Cmdlet 之所在伺服器上的系統管理員群組。Administrators group on the server on which you are running the Microsoft PowerShell cmdlets.

    • 請以高於上述基本要求新增必要的成員資格。Add memberships that are required beyond the minimums above.

      系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.


      如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdminIf 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.

  2. 啟動 SharePoint 管理命令介面。Start the SharePoint Management Shell.

  3. 在 PowerShell 命令提示字元中,輸入下列命令:At the PowerShell command prompt, type the following command:

    $upaProxy = Get-SPServiceApplicationProxy <AppID>

    其中 <AppID> 是 User Profile Synchronization 服務應用程式 Proxy 的 GUID。如需更多資訊,請參閱 Get-SPProfileLeaderwhere <AppID> is the GUID of the User Profile service application proxy. For more information, see Get-SPProfileLeader.

  4. 輸入下列命令:Type the following command:

    Add-SPProfileLeader -ProfileServiceApplicationProxy $upaProxy -Name "<Domain\UserName> "

    其中 <Domain\UserName> 是您想新增為負責人的使用者帳戶例如,Contoso\Joe.Healy。如需更多資訊,請參閱 Add-SPProfileLeaderwhere <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.

  5. 隨即會出現要求確認的提示。輸入 [Y]**** 確認。You are prompted to confirm. Type Y to confirm.

  6. 在包含 User Profile 應用程式的起始位址 (URL) 的內容來源中執行完整編目。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.

另請參閱See also

其他資源Other Resources