Get-PnPRoleDefinition
Tip
We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Get-PnPRoleDefinition.md to change this file.
Retrieves a Role Definitions of a site
Syntax
Get-PnPRoleDefinition
[[-Identity] <RoleDefinitionPipeBind>]
[-Connection <PnPConnection>]
[<CommonParameters>]
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: | PnPConnection |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Identity
The name of a role definition to retrieve.
Type: | RoleDefinitionPipeBind |
Position: | 0 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |