Simon Vedder

Cloud Engineer · Zürich

Show-RiskyRoleAssignment

Pick findings in a grid and pass the picked ones down the pipeline.

Required permissionsNone. It filters objects you already have.

Opens the findings in Out-ConsoleGridView (any platform, from the Microsoft.PowerShell.ConsoleGuiTools module) or Out-GridView (Windows) with the columns that matter for a decision, and returns the original finding objects for the rows you selected. Protected findings are shown too; Remove-RiskyRoleAssignment refuses them later anyway.

Syntax

Show-RiskyRoleAssignment [-InputObject] <RiskyRoleAssignment[]> [[-Title] <string>] [<CommonParameters>]

Requirements

PrerequisitesA grid view and an interactive terminal. Out-ConsoleGridView from Microsoft.PowerShell.ConsoleGuiTools on any platform, or Out-GridView on Windows. Without one it throws and says what to install. Selecting nothing returns nothing rather than everything.

Parameters

NameTypeRequiredPipelineDefaultDescription
-InputObjectObject[]yesyesFindings from Get-RiskyRoleAssignment.
-TitleStringnonoRiskyRolesAnalyzer: select assignments, then confirmWindow title.

Examples

Example 1

Get-RiskyRoleAssignment | Show-RiskyRoleAssignment | Remove-RiskyRoleAssignment -WhatIf

Example 2

$picked = $findings | Show-RiskyRoleAssignment -Title 'Contoso: assignments to remove'

Output

  • RiskyRolesAnalyzer.RiskyRoleAssignment

Generated from the comment-based help in the module. Same text as Get-Help Show-RiskyRoleAssignment -Full, and as the copy on GitHub.