分配 User Profile Service 功能的管理任务 (SharePoint Server 2010)

 

适用于: SharePoint Server 2010

上一次修改主题: 2016-11-30

服务器场管理员可以将 User Profile Service 应用程序或该应用程序选定功能的管理任务委派给服务应用程序管理员。服务应用程序管理员可以将一部分 User Profile Service 应用程序功能的管理任务委派给另一个称作“功能管理员”的用户。功能管理员可以执行与委派功能相关的所有管理任务,但无法管理管理中心内包含的其他功能、服务应用程序或设置。有关详细信息,请参阅 用户配置文件服务概述 (SharePoint Server 2010)

可以将以下 User Profile Service 应用程序功能中的任何功能委派给功能管理员:

  • 管理配置文件

  • 管理访问群体

  • 管理权限

  • 检索人员数据以用于搜索爬网程序

  • 管理社会数据

在执行此过程之前,请确认以下内容:

  • 服务器场中正在运行一个 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 应用程序”。

  4. 在“服务应用程序”选项卡上的“操作”组中,单击“管理员”。

  5. 在“User Profile Service 应用程序的管理员”页中,键入或选择一个用户帐户或组帐户,然后单击“添加”。

  6. 在“管理员权限:”框中,查看要对其委派管理任务的功能,然后单击“确定”。

使用 Windows PowerShell 委派用户 User Profile Service 功能的管理任务

通常,当您需要自动执行任务时,可以使用 Windows PowerShell 委派 User Profile Service 功能的管理任务,这在企业中很普遍。

使用 Windows PowerShell 委派用户 User Profile Service 功能的管理任务

  1. 验证您是否满足以下最低要求:

  2. 在“开始”菜单上,单击“管理工具”。

  3. 单击“SharePoint 2010 Management Shell”。

  4. 在 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 "Manage Social Data" permissions to the claims
    // principal you just created
    Grant-SPObjectSecurity $security -Principal $principalUser1 -Rights "Manage Social Data"
    
    // Apply the changes to the User Profile service application
    Set-SPServiceApplicationSecurity $serviceapp -objectSecurity $security -Admin
    

    其中:

    • <guid> 是要向其委派“管理社会数据”权限的 User Profile Service 的 GUID。

    • <domain\user> 是要向其委派“管理社会数据”权限的用户。

    有关详细信息,请参阅 Get-SPServiceApplicationGet-SPServiceApplicationSecurityNew-SPClaimsPrincipalGrant-SPObjectSecuritySet-SPServiceApplicationSecurity

    备注

    我们建议您在执行命令行管理任务时使用 Windows PowerShell。Stsadm 命令行工具已被弃用,仍然包含该工具是为了支持与之前产品版本的兼容性。

See Also

Concepts

分配 User Profile Service 功能的管理任务 (SharePoint Server 2010)
分配 User Profile Service 应用程序的管理任务 (SharePoint Server 2010)