maester-tests/cis/Test-MtCisThirdPartyApplicationsDisallowed.Tests.ps1

Describe "CIS" -Tag "CIS.M365.5.1.2.2", "L2", "CIS E3 Level 2", "CIS E3", "CIS E5 Level 2", "CIS E5", "CIS", "Security", "CIS M365 v5.0.0" {
    It "CIS.M365.5.1.2.2: Ensure third party integrated applications are not allowed" {

        $result = Test-MtCisThirdPartyApplicationsDisallowed

        if ($null -ne $result) {
            $result | Should -Be $true -Because "users are not allowed to register third party applications in the tenant."
        }
    }
}