Get-PnPRoleDefinition

Retrieves a Role Definitions of a site

Syntax

Get-PnPRoleDefinition
   [-Identity <RoleDefinitionPipeBind>]
                        [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Get-PnPRoleDefinition

Retrieves the Role Definitions (Permission Levels) settings of the current site

------------------EXAMPLE 2------------------

Get-PnPRoleDefinition -Identity Read

Retrieves the specified Role Definition (Permission Level) settings of the current site

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Identity

The name of a role definition to retrieve.

Type:RoleDefinitionPipeBind
Position:0
Accept pipeline input:True
Accept wildcard characters:False

Outputs

Microsoft.SharePoint.Client.RoleDefinition