external help file | Module Name | online version | schema |
---|---|---|---|
SPClientCore.dll-Help.xml |
SPClientCore |
2.0.0 |
Retrieves one or more role assignments.
Get-KshRoleAssignment [-Identity] <RoleAssignment> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshRoleAssignment [-Site] [-PrincipalId] <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshRoleAssignment [-Site] [-NoEnumerate] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshRoleAssignment [-List] <List> [-PrincipalId] <Int32> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Get-KshRoleAssignment [-List] <List> [-NoEnumerate] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshRoleAssignment [-ListItem] <ListItem> [-PrincipalId] <Int32> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Get-KshRoleAssignment [-ListItem] <ListItem> [-NoEnumerate] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
The Get-KshRoleAssignment cmdlet retrieves role assignments of the current site, the specified list, or the specified list item.
PS C:\> Get-KshRoleAssignment -Site -PrincipalId 1
Retrieves a site role assignment by principal ID.
PS C:\> Get-KshRoleAssignment -List (Get-KshList -ListUrl '/sites/japan/hr/Announcements') -PrincipalId 1
Retrieves a list role assignment by principal ID.
PS C:\> Get-KshRoleAssignment -ListItem (Get-KshListItem -List (Get-KshList -ListUrl '/sites/japan/hr/Announcements') -ItemId 1) -PrincipalId 1
Retrieves a list item role assignment by principal ID.
PS C:\> Get-KshRoleAssignment
Retrieves all site role assignments.
Specifies the role assignment.
Type: RoleAssignment
Parameter Sets: ParamSet1
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the list.
Type: List
Parameter Sets: ParamSet4, ParamSet5
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the list item.
Type: ListItem
Parameter Sets: ParamSet6, ParamSet7
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If specified, suppresses to enumerate objects.
Type: SwitchParameter
Parameter Sets: ParamSet3, ParamSet5, ParamSet7
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the user ID or group ID.
Type: Int32
Parameter Sets: ParamSet2, ParamSet4, ParamSet6
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If specified, uses the current site.
Type: SwitchParameter
Parameter Sets: ParamSet2, ParamSet3
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider.
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.