Skip to content

Latest commit

 

History

History
206 lines (158 loc) · 4.22 KB

Set-KshUniqueRoleAssignmentEnabled.md

File metadata and controls

206 lines (158 loc) · 4.22 KB
external help file Module Name online version schema
SPClientCore.dll-Help.xml
SPClientCore
2.0.0

Set-KshUniqueRoleAssignmentEnabled

SYNOPSIS

Changes whether unique role assignment is enabled.

SYNTAX

ParamSet1

Set-KshUniqueRoleAssignmentEnabled [-Site] [-Enabled] [-CopyRoleAssignments] [-ClearSubscopes]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

ParamSet2

Set-KshUniqueRoleAssignmentEnabled [-Site] [-Disabled] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

ParamSet3

Set-KshUniqueRoleAssignmentEnabled [-List] <List> [-Enabled] [-CopyRoleAssignments] [-ClearSubscopes]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

ParamSet4

Set-KshUniqueRoleAssignmentEnabled [-List] <List> [-Disabled] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

ParamSet5

Set-KshUniqueRoleAssignmentEnabled [-ListItem] <ListItem> [-Enabled] [-CopyRoleAssignments] [-ClearSubscopes]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

ParamSet6

Set-KshUniqueRoleAssignmentEnabled [-ListItem] <ListItem> [-Disabled] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

The Set-KshUniqueRoleAssignmentEnabled cmdlet changes whether a unique role assignment is enabled for the current site, the specified list, or the specified list item.

EXAMPLES

Example 1

PS C:\> Set-KshUniqueRoleAssignmentEnabled -Site -Enabled -CopyRoleAssignments -ClearSubscopes

Creates unique role assignments.

Example 2

PS C:\> Set-KshUniqueRoleAssignmentEnabled -Site -Disabled

Removes unique role assignments.

PARAMETERS

-ClearSubscopes

If specified, the role assignments for all child securable objects must be cleared.

Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet3, ParamSet5
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CopyRoleAssignments

If specified, copies the role assignments from the specified securable object.

Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet3, ParamSet5
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Disabled

If specified, removes unique role assignments for the securable object.

Type: SwitchParameter
Parameter Sets: ParamSet2, ParamSet4, ParamSet6
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Enabled

If specified, creates unique role assignments for the securable object.

Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet3, ParamSet5
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-List

Specifies the list.

Type: List
Parameter Sets: ParamSet3, ParamSet4
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ListItem

Specifies the list item.

Type: ListItem
Parameter Sets: ParamSet5, ParamSet6
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Site

If specified, uses the current site.

Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

None

NOTES

RELATED LINKS