maester
maester copied to clipboard
New test - M365 Group should be limited to approved users
Here's a code test contribution.
Describe "RAEntraConfig" -Tag "Privilege", "Office 365 for IT Pros" {
It "OFF.STD01: Check 'Group creation blocked for non-authorized users" {
$result = Invoke-MtGraphRequest -RelativeUri 'settings' -ApiVersion beta
$groupExists = $result | Where-Object { $_.displayName -eq 'Group.Unified' }
$testResult = $groupExists -ne $null
$testResult | Should -Be $true
}
}
```