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 'There is a conflicting OAuth Consent policy standard enabled for this tenant. Remove the Require admin consent for applications (Prevent OAuth phishing) standard from this tenant to apply the low security standard.'-sev Error
if ($State.permissionGrantPolicyIdsAssignedToDefaultUserRole-notin@('managePermissionGrantsForSelf.microsoft-user-default-low')) {
89
-
if ($State.permissionGrantPolicyIdsAssignedToDefaultUserRole-eq'managePermissionGrantsForSelf.cipp-consent-policy') {
90
-
Write-StandardsAlert-message 'There is a conflicting OAuth Consent policy standard enabled for this tenant.'-object $State-tenant $tenant-standardName 'OauthConsentLowSec'-standardId $Settings.standardId
91
-
} else {
92
-
Write-StandardsAlert-message 'Application Consent Mode(microsoft-user-default-low) is not enabled'-object $State-tenant $tenant-standardName 'OauthConsentLowSec'-standardId $Settings.standardId
93
-
}
92
+
Write-StandardsAlert-message 'Application Consent Mode(microsoft-user-default-low) is not enabled'-object $State-tenant $tenant-standardName 'OauthConsentLowSec'-standardId $Settings.standardId
94
93
Write-LogMessage-API 'Standards'-tenant $tenant-message 'Application Consent Mode(microsoft-user-default-low) is not enabled.'-sev Info
95
94
} else {
96
95
Write-LogMessage-API 'Standards'-tenant $tenant-message 'Application Consent Mode(microsoft-user-default-low) is enabled.'-sev Info
@@ -104,6 +103,12 @@ function Invoke-CIPPStandardOauthConsentLowSec {
0 commit comments