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
"Successfully performed $($ExclusionType) exclusion for $username from policy $($PolicyId)"
39
-
Write-LogMessage-headers $Headers-API 'Set-CIPPConditionalAccessExclusion'-message "Successfully performed $($ExclusionType) exclusion for $username from policy $($PolicyId)"-Sev 'Info'-tenant $TenantFilter
71
+
72
+
foreach ($Userin$Username) {
73
+
"Successfully performed $($ExclusionType) exclusion for $User from policy $($CheckExisting.displayName)"
74
+
Write-LogMessage-headers $Headers-API 'Set-CIPPCAExclusion'-message "Successfully performed $($ExclusionType) exclusion for $User from policy $($CheckExisting.displayName)"-Sev 'Info'-tenant $TenantFilter
75
+
}
40
76
} catch {
41
-
"Failed to $($ExclusionType) user exclusion for $username from policy $($PolicyId): $($_.Exception.Message)"
42
-
Write-LogMessage-headers $Headers-API 'Set-CIPPConditionalAccessExclusion'-message "Failed to $($ExclusionType) user exclusion for $username from policy $($PolicyId): $_"-Sev 'Error'-tenant $TenantFilter-LogData (Get-CippException-Exception $_)
77
+
foreach ($Userin$Username) {
78
+
"Failed to $($ExclusionType) user exclusion for $User from policy $($CheckExisting.displayName): $($_.Exception.Message)"
79
+
Write-LogMessage-headers $Headers-API 'Set-CIPPCAExclusion'-message "Failed to $($ExclusionType) user exclusion for $User from policy $($CheckExisting.displayName): $_"-Sev 'Error'-tenant $TenantFilter-LogData (Get-CippException-Exception $_)
0 commit comments