Get-SPProfileServiceApplicationSecurity

返回权限和标识信息。

语法

Get-SPProfileServiceApplicationSecurity
   -ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-SiteSubscription <SPSiteSubscriptionPipeBind>]
   [-Type <String>]
   [<CommonParameters>]

说明

使用 Get-SPProfileServiceApplicationSecurity cmdlet 可以显示以下用户配置文件对象的权限和标识信息:

  • 读取各个“我的网站”
  • 使用个人功能
  • 使用社交功能
  • 创建个人网站

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet

示例

-------------------示例--------------------

$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile Service Application Proxy'}
PS Get-SPProfileServiceApplicationSecurity -ProfileServiceApplicationProxy $proxy -Type MySiteReaderACL

此示例在 UPA Proxy 1 上显示“我的网站”的信息。

参数

-ProfileServiceApplicationProxy

指定代理的唯一标识符。

Type:SPServiceApplicationProxyPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SiteSubscription

指定要在其下运行此服务的帐户。 在宿主环境中,此参数是强制参数;在非宿主环境中,此参数是可选参数。

Type:SPSiteSubscriptionPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Type

指定要显示的对象的类型。

类型是以下任一个值:

  • MySiteReaderACL
  • MySiteHostReaderACL
  • UserACL
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition