-
Notifications
You must be signed in to change notification settings - Fork 0
Get PpacSecurityRole
Get information about Power Platform security roles in a given environment.
Get-PpacSecurityRole [-EnvironmentId] <String> [[-Name] <String>] [-IncludeAll] [-AsExcelOutput]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
This cmdlet retrieves information about Power Platform security roles in a given environment. It allows filtering by role name or ID, including all roles, and exporting the results to Excel.
Get-PpacSecurityRole -EnvironmentId "ContosoEnv"
This command retrieves all Power Platform security roles from the environment "ContosoEnv" and displays their information in the console.
Get-PpacSecurityRole -EnvironmentId "ContosoEnv" -Name "System Customizer"
This command retrieves the Power Platform security role with the name "System Customizer" from the environment "ContosoEnv" and displays its information in the console.
Get-PpacSecurityRole -EnvironmentId "ContosoEnv" -Name "*system*"
This command retrieves all Power Platform security roles with names matching "system" from the environment "ContosoEnv" and displays their information in the console.
Get-PpacSecurityRole -EnvironmentId "ContosoEnv" -IncludeAll
This command retrieves all Power Platform security roles, including both environment-level and business unit-level roles, from the environment "ContosoEnv" and displays their information in the console.
Get-PpacSecurityRole -EnvironmentId "ContosoEnv" -AsExcelOutput
This command retrieves all Power Platform security roles from the environment "ContosoEnv". It will export the information to an Excel file.
The ID of the environment to retrieve security roles from.
Can be either the environment name, the environment GUID (PPAC) or the LCS environment ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe name or ID of the security role to filter the roles by.
Can be either the role name or role ID.
Supports wildcard characters for flexible matching.
Type: String
Parameter Sets: (All)
Aliases: Role
Required: False
Position: 2
Default value: *
Accept pipeline input: False
Accept wildcard characters: FalseInstructs the cmdlet to include all security roles in the results, including both environment-level and business unit-level roles.
By default, only environment-level roles are included.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseInstructs the cmdlet to export the retrieved security role information to an Excel file.
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)