指定 User Profile Service 應用程式的管理 (SharePoint Server 2010)

 

適用版本: SharePoint Server 2010

上次修改主題的時間: 2016-11-30

伺服器陣列管理員可將特定 User Profile Service 應用程式的管理,委派給服務應用程式管理員。服務應用程式管理員可執行所有與該 User Profile Service 應用程式相關的管理工作,但不能管理包含在管理中心內的其他服務應用程式或設定。如需詳細資訊,請參閱<User Profile Service 概觀 (SharePoint Server 2010)>。

執行此程序之前,請先確認下列事項:

  • 伺服器陣列中已有執行 User Profile Service 應用程式。

本文內容:

  • 使用管理中心委派 User Profile Service 應用程式的管理

  • 使用 Windows PowerShell 委派 User Profile Service 應用程式的管理

使用管理中心委派 User Profile Service 應用程式的管理

在獨立部署中,一般是使用管理中心網站委派 User Profile Service 應用程式的管理。

使用管理中心委派 User Profile Service 應用程式的管理

  1. 確認您具備下列管理認證:

    • 若要使用管理中心,執行此程序的使用者帳戶必須是伺服器陣列管理員群組的成員。
  2. 在管理中心網站上,按一下 [應用程式管理] 區段中的 [管理服務應用程式]。

  3. 在服務應用程式清單中,按一下 [User Profile Service Application]。

  4. 在 [服務應用程式] 索引標籤上,按一下 [作業] 區段中的 [管理員]。

  5. 在 [User Profile Service Application 管理員] 頁面上,輸入或選取使用者或群組帳戶,然後按一下 [新增]。

  6. 在 [管理員權限:] 方塊中,核取 [完全控制] 權限等級,然後按一下 [確定]。

使用 Windows PowerShell 委派 User Profile Service 應用程式的管理

希望自動化工作時,一般會使用 Windows PowerShell 委派 User Profile Service 應用程式的管理,這在企業中很常見。

使用 Windows PowerShell 委派 User Profile Service 應用程式的管理

  1. 確認符合下列基本需求:

  2. 在 [開始] 功能表上,按一下 [所有程式]。

  3. 按一下 [Microsoft SharePoint 2010 產品]。

  4. 按一下 [SharePoint 2010 管理命令介面]。

  5. 在 Windows PowerShell 命令提示字元 (即 PS C:\>) 處,輸入下列不含註解 (//) 的命令,各自分列一行:

    // Display a list of all service applications and their GUIDs
    Get-SPServiceApplication
    
    // Create a variable that contains the guid for the User Profile service for
    // which you want to delegate Full Control
    $serviceapp = Get-SPServiceApplication <guid>
    
    // Create a variable that contains the list of administrators for the service application 
    $security = Get-SPServiceApplicationSecurity $serviceapp -Admin
    
    // Create a variable that contains the claims principal for a user account
    $principalUser1 = New-SPClaimsPrincipal -Identity "domain\user" -IdentityType WindowsSamAccountName
    
    // Give Full Control permissions to the claims principal you just created
    Grant-SPObjectSecurity $security -Principal $principalUser1 -Rights "Full Control"
    
    // Apply the changes to the User Profile service application
    Set-SPServiceApplicationSecurity $serviceapp -objectSecurity $security -Admin
    

    其中:

    • <guid> 是您要委派「完全控制」之 User Profile Service 的 GUID。

    • <網域\使用者> 是您要委派「完全控制」的使用者。

    如需詳細資訊,請參閱<Get-SPServiceApplication>、<Get-SPServiceApplicationSecurity>、<New-SPClaimsPrincipal>、<Grant-SPObjectSecurity>及<Set-SPServiceApplicationSecurity>。

    注意

    建議您在執行命令列管理工作時使用 Windows PowerShell。Stsadm 命令列工具已過時,但為與舊版產品相容,仍會隨附提供。

See Also

Concepts

指定 User Profile Service 功能的管理 (SharePoint Server 2010)