You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-LogMessage-API 'Standards'-Tenant $Tenant-Message "Could not get the ConditionalAccessTemplate state for $Tenant. Error: $ErrorMessage"-Sev Error
50
50
return
@@ -55,6 +55,13 @@ function Invoke-CIPPStandardConditionalAccessTemplate {
55
55
try {
56
56
$Filter="PartitionKey eq 'CATemplate' and RowKey eq '$($Setting.TemplateList.value)'"
Set-CIPPStandardsCompareField-FieldName "standards.ConditionalAccessTemplate.$($Setting.value)"-FieldValue "Policy $($Setting.label) is missing from this tenant."-Tenant $Tenant
80
+
if ($Setting.conditions.userRiskLevels.Count-gt0-or$Setting.conditions.signInRiskLevels.Count-gt0) {
Set-CIPPStandardsCompareField-FieldName "standards.ConditionalAccessTemplate.$($Setting.value)"-FieldValue "Policy $($Setting.label) is missing from this tenant."-Tenant $Tenant
85
+
}
86
+
} else {
87
+
Set-CIPPStandardsCompareField-FieldName "standards.ConditionalAccessTemplate.$($Setting.value)"-FieldValue "Policy $($Setting.label) is missing from this tenant."-Tenant $Tenant
0 commit comments