maester-tests/cisa/entra/Test-MtCisaGlobalAdminRatio.Tests.ps1

Describe "CISA" -Tag "MS.AAD", "MS.AAD.7.2", "CISA.MS.AAD.7.2", "CISA", "Security", "Entra ID Free" {
    It "CISA.MS.AAD.7.2: Privileged users SHALL be provisioned with finer-grained roles instead of Global Administrator." {
        $result = Test-MtCisaGlobalAdminRatio

        if ($null -ne $result) {
            $result | Should -Be $true -Because "more granular role assignments exist than global admin assignments."
        }
    }
}