Skip to content

Commit d539326

Browse files
committed
remove user condition fallback
1 parent e9fd45d commit d539326

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Modules/CIPPCore/Public/New-CIPPCAPolicy.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,6 @@ function New-CIPPCAPolicy {
197197
$JSONObj.conditions.users.$groupType = @(Replace-GroupNameWithId -groupNames $JSONObj.conditions.users.$groupType)
198198
}
199199
}
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-
206200
} catch {
207201
$ErrorMessage = Get-CippException -Exception $_
208202
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

Comments
 (0)