maester icon indicating copy to clipboard operation
maester copied to clipboard

New test - M365 Group should be limited to approved users

Open 12Knocksinna opened this issue 5 months ago • 2 comments

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 

    }
}
```
             

12Knocksinna avatar Oct 03 '24 16:10 12Knocksinna