確認每個 User Profile Service 應用程式都有相關聯的 Search Service 連線 (SharePoint Server)Verify each User Profile Service Application has an associated Search Service Connection (SharePoint Server)

摘要: 了解如何解決 SharePoint Server 2016 和 SharePoint Server 2013 中的 SharePoint Health Analyzer 規則「確認每個 User Profile Service 應用程式都有相關聯的「Search Service 連線」。Summary: Learn how to resolve the SharePoint Health Analyzer rule "Verify each User Profile Service Application has an associated Search Service Connection", in SharePoint Server 2016 and SharePoint Server 2013.

摘要: User Profile Service 會在一些網頁組件及標記設定檔頁面中,向使用者顯示 URL。為了安全性起見,這些 URL 會經過調整,以確保使用者不會看到其無權存取的 URL。User Profile Service 會使用 Search Service 執行此安全性調整。如果 User Profile Service 應用程式沒有相關聯的 Search Service,安全性調整將無法運作,且所有人都會看到 URL。雖然使用者在按一下其無權存取的 URL 時,存取會遭到拒絕,但是使用者仍會在搜尋結果中看到此 URL。Summary: The User Profile service presents URLs to end users in some Web Part and tag profile pages. These URLs are trimmed for security to make sure that users do not see URLs to which they do not have permissions. The User Profile service uses the Search service to perform this security trimming. If there is no Search service associated with the User Profile service application, security trimming does not work, and URLs are visible to everyone. Although users are denied access when they click a URL for which they do not have permissions, they nonetheless can see the URL in the search results.

原因: Search Service 連線不包含在 User Profile Service 應用程式的連線群組中。Cause: A Search service connection is not included in the group of connections for the User Profile service application.

解決方案:編輯 User Profile Service 應用程式的連線群組。Resolution: Edit the group of connections for the User Profile service application.

  1. 確認執行此程序的使用者帳戶是伺服器陣列管理員群組的成員。Verify that the user account that is performing this procedure is a member of the Farm Administrators group.

  2. 在 SharePoint 管理中心網站中,按一下 [應用程式管理]*On the SharePoint Central Administration website, click *Application Management.

  3. 在 [應用程式管理] 頁面上,按一下 [服務應用程式]**** 區段中的 [設定服務應用程式關聯]*On the Application Management page, in the *Service Applications section, click Configure service application associations.

  4. 在 [服務應用程式關聯] 頁面的 [檢視]**** 清單中,按一下 [服務應用程式]*On the Service Application Associations page, in the *View list, click Service Applications.

  5. 在 [Web 應用程式/服務應用程式]**** 欄中,按一下您要編輯連線的 User Profile Service 應用程式。In the Web Application/Service Application column, click the User Profile service application for which you want to edit connections.

  6. 在 [設定服務應用程式關聯]**** 對話方塊中,選取 [Search Service]**** 核取方塊,或在 [編輯下列連線群組]**** 清單中選取 [預設]*,然後按一下 [確定]。預設會包括所有連線。In the **Configure Service Application Associations* dialog box, select the Search Service check box, or select Default in the Edit the following group of connections list, and then click OK. By default, all connections are included.