Skip to content

Latest commit

 

History

History
123 lines (91 loc) · 2.25 KB

Add-KshRoleDefinition.md

File metadata and controls

123 lines (91 loc) · 2.25 KB
external help file Module Name online version schema
SPClientCore.dll-Help.xml
SPClientCore
2.0.0

Add-KshRoleDefinition

SYNOPSIS

Creates a new role definition.

SYNTAX

Add-KshRoleDefinition [-BasePermission <BasePermission>] [-Description <String>] -Name <String>
 [-Order <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

The Add-KshRoleDefinition cmdlet adds a new role definition to the current site.

EXAMPLES

Example 1

PS C:\> Add-KshRoleDefinition -BasePermission (New-KshBasePermission -Permission 'ViewListItems') -Name 'Viewer'

Creates a new role definition.

PARAMETERS

-BasePermission

Specifies the base permissions.

Type: BasePermission
Parameter Sets: (All)
Aliases:

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

-Description

Specifies the description.

Type: String
Parameter Sets: (All)
Aliases:

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

-Name

Specifies the name.

Type: String
Parameter Sets: (All)
Aliases:

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

-Order

Specifies the order.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
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

Karamem0.SharePoint.PowerShell.Models.V1.RoleDefinition

NOTES

RELATED LINKS