-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
210 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
--- | ||
sidebar_class_name: hidden | ||
description: Checks if PIM alerts exists | ||
id: Test-MtPimAlertsExists | ||
title: Test-MtPimAlertsExists | ||
hide_title: false | ||
hide_table_of_contents: false | ||
custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/public/Test-MtPimAlertsExists.ps1 | ||
--- | ||
|
||
## SYNOPSIS | ||
|
||
Checks if PIM alerts exists | ||
|
||
## SYNTAX | ||
|
||
```powershell | ||
Test-MtPimAlertsExists [-AlertId] <String[]> [[-FilteredAccessLevel] <String[]>] | ||
[[-FilteredBreakGlass] <Object[]>] [-ProgressAction <ActionPreference>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
GET /beta/privilegedAccess/aadroles/resources/$tenantId/alerts | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
|
||
```powershell | ||
Test-MtPimAlertsExists -FilteredAccessLevel "ControlPlane" -AlertId "RolesAssignedOutsidePimAlert" | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
### -AlertId | ||
|
||
\{\{ Fill AlertId Description \}\} | ||
|
||
```yaml | ||
Type: String[] | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 1 | ||
Default value: None | ||
Accept pipeline input: True (ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
### -FilteredAccessLevel | ||
\{\{ Fill FilteredAccessLevel Description \}\} | ||
```yaml | ||
Type: String[] | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: 2 | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
### -FilteredBreakGlass | ||
\{\{ Fill FilteredBreakGlass Description \}\} | ||
```yaml | ||
Type: Object[] | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: 3 | ||
Default value: (Get-MtUser -UserType EmergencyAccess) | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
### -ProgressAction | ||
\{\{ Fill ProgressAction Description \}\} | ||
```yaml | ||
Type: ActionPreference | ||
Parameter Sets: (All) | ||
Aliases: proga | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
## OUTPUTS | ||
### System.Object | ||
## NOTES | ||
## RELATED LINKS |
96 changes: 96 additions & 0 deletions
96
website/docs/commands/Test-MtPrivPermanentDirectoryRole.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
--- | ||
sidebar_class_name: hidden | ||
description: Checks if Permanent Assignments for Entra ID roles exists | ||
id: Test-MtPrivPermanentDirectoryRole | ||
title: Test-MtPrivPermanentDirectoryRole | ||
hide_title: false | ||
hide_table_of_contents: false | ||
custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/public/Test-MtPrivPermanentDirectoryRole.ps1 | ||
--- | ||
|
||
## SYNOPSIS | ||
|
||
Checks if Permanent Assignments for Entra ID roles exists | ||
|
||
## SYNTAX | ||
|
||
```powershell | ||
Test-MtPrivPermanentDirectoryRole [[-FilteredAccessLevel] <String[]>] [-FilterPrincipal] <Object[]> | ||
[-ProgressAction <ActionPreference>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
GET /beta/roleManagement/directory/roleAssignments?$expand=principal | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
|
||
```powershell | ||
Test-MtPrivPermanentDirectoryRole -FilteredAccessLevel "ControlPlane" -FilterPrincipal "ExternalUser" | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
### -FilteredAccessLevel | ||
|
||
\{\{ Fill FilteredAccessLevel Description \}\} | ||
|
||
```yaml | ||
Type: String[] | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: 1 | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
### -FilterPrincipal | ||
\{\{ Fill FilterPrincipal Description \}\} | ||
```yaml | ||
Type: Object[] | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 2 | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
### -ProgressAction | ||
\{\{ Fill ProgressAction Description \}\} | ||
```yaml | ||
Type: ActionPreference | ||
Parameter Sets: (All) | ||
Aliases: proga | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
## OUTPUTS | ||
### System.Boolean | ||
## NOTES | ||
## RELATED LINKS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters