We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9fd45d commit d539326Copy full SHA for d539326
Modules/CIPPCore/Public/New-CIPPCAPolicy.ps1
@@ -197,12 +197,6 @@ function New-CIPPCAPolicy {
197
$JSONObj.conditions.users.$groupType = @(Replace-GroupNameWithId -groupNames $JSONObj.conditions.users.$groupType)
198
}
199
200
-
201
- if ($JSONObj.conditions.users.includeUsers.Count -eq 0) {
202
- Write-Information 'No users matched in this policy, setting to none'
203
- $JSONObj.conditions.users.includeUsers = 'none'
204
- }
205
206
} catch {
207
$ErrorMessage = Get-CippException -Exception $_
208
Write-LogMessage -API 'Standards' -tenant $tenant -message "Failed to replace displayNames for conditional access rule $($JSONObj.displayName). Error: $($ErrorMessage.NormalizedError)" -sev 'Error' -LogData $ErrorMessage
0 commit comments