-
Notifications
You must be signed in to change notification settings - Fork 0
Get PpacRbacRole
Get PPAC RBAC roles available in the tenant.
Get-PpacRbacRole [[-Role] <String>] [-AsExcelOutput] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Gets PPAC RBAC roles available in the tenant. This command is used to retrieve the list of available PPAC RBAC roles, which can then be used for role assignments in Power Platform.
Get-PpacRbacRole -Role "Power Platform *"
This command retrieves all PPAC RBAC roles with names starting with "Power Platform".
Get-PpacRbacRole -Role "*admin*" -AsExcelOutput
This command retrieves all PPAC RBAC roles with names or descriptions containing "admin". The results will be exported to an Excel file instead of being displayed in the console.
The name, id or description of the PPAC RBAC role to retrieve.
Use wildcards (*) for partial matches. If not specified, all roles will be returned.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: *
Accept pipeline input: False
Accept wildcard characters: FalseInstructs the command to output the results to an Excel file instead of the console.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Mötz Jensen (@Splaxi)
Based on: https://learn.microsoft.com/en-us/power-platform/admin/programmability-tutorial-rbac-role-assignment?tabs=PowerShell https://learn.microsoft.com/en-us/power-platform/admin/programmability-authentication-v2?tabs=powershell%2Cpowershell-interactive%2Cpowershell-confidential