Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/maester365/maester
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed May 15, 2024
2 parents a63059e + db2731a commit 3149cc8
Show file tree
Hide file tree
Showing 14 changed files with 924 additions and 1 deletion.
93 changes: 93 additions & 0 deletions website/docs/commands/Get-MtGroupMember.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
sidebar_class_name: hidden
description: Returns all the members of the specific group ID.
id: Get-MtGroupMember
title: Get-MtGroupMember
hide_title: false
hide_table_of_contents: false
custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/public/Get-MtGroupMember.ps1
---

## SYNOPSIS

Returns all the members of the specific group ID.

## SYNTAX

```powershell
Get-MtGroupMember [-groupId] <Guid> [-Recursive] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION

\{\{ Fill in the Description \}\}

## EXAMPLES

### EXAMPLE 1

```powershell
Get-MtGroupMember
```

## PARAMETERS

### -groupId

\{\{ Fill groupId Description \}\}

```yaml
Type: Guid
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Recursive
\{\{ Fill Recursive Description \}\}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
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
## NOTES
## RELATED LINKS
19 changes: 18 additions & 1 deletion website/docs/commands/Get-MtRole.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Returns all the role definitions in the tenant.
## SYNTAX

```powershell
Get-MtRole [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-MtRole [-CisaHighlyPrivilegedRoles] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand All @@ -32,6 +32,23 @@ Get-MtRole

## PARAMETERS

### -CisaHighlyPrivilegedRoles

Filters the returned roles to only those described
by CISA as highly privieleged.

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
\{\{ Fill ProgressAction Description \}\}
Expand Down
126 changes: 126 additions & 0 deletions website/docs/commands/Get-MtRoleMember.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
---
sidebar_class_name: hidden
description: Returns all the members of a role.
id: Get-MtRoleMember
title: Get-MtRoleMember
hide_title: false
hide_table_of_contents: false
custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/public/Get-MtRoleMember.ps1
---

## SYNOPSIS

Returns all the members of a role.

## SYNTAX

```powershell
Get-MtRoleMember [-roleId] <Guid> [-Eligible] [-Active] [-All] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
```

## DESCRIPTION

\{\{ Fill in the Description \}\}

## EXAMPLES

### EXAMPLE 1

```powershell
Get-MtRoleMember
```

## PARAMETERS

### -roleId

\{\{ Fill roleId Description \}\}

```yaml
Type: Guid
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Eligible
\{\{ Fill Eligible Description \}\}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -Active
\{\{ Fill Active Description \}\}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -All
\{\{ Fill All Description \}\}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
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
## NOTES
## RELATED LINKS
90 changes: 90 additions & 0 deletions website/docs/commands/Test-MtCisaActivationNotification.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
sidebar_class_name: hidden
description: Checks for notification on role activation
id: Test-MtCisaActivationNotification
title: Test-MtCisaActivationNotification
hide_title: false
hide_table_of_contents: false
custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/public/Test-MtCisaActivationNotification.ps1
---

## SYNOPSIS

Checks for notification on role activation

## SYNTAX

```powershell
Test-MtCisaActivationNotification [-GlobalAdminOnly] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION

User activation of the Global Administrator role SHALL trigger an alert.
User activation of other highly privileged roles SHOULD trigger an alert.

## EXAMPLES

### EXAMPLE 1

```powershell
Test-MtCisaActivationNotification
```

Returns true if notifications are set for activation of the highly privileged roles other than Global Admin

### EXAMPLE 2

```powershell
Test-MtCisaActivationNotification -GlobalAdminOnly
```

Returns true if notifications are set for activation of the Global Admin role

## PARAMETERS

### -GlobalAdminOnly

\{\{ Fill GlobalAdminOnly Description \}\}

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
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
Loading

0 comments on commit 3149cc8

Please sign in to comment.