File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function Set-CIPPCAExclusion {
4343
4444 $RawJson = ConvertTo-Json - Depth 10 - InputObject $NewExclusions
4545 if ($PSCmdlet.ShouldProcess ($PolicyId , " Add exclusion for $UserID " )) {
46- New-GraphPOSTRequest - uri " https://graph.microsoft.com/beta/identity/conditionalAccess/policies/$ ( $CheckExisting.id ) " - tenantid $tenantfilter - type PATCH - body $RawJSON - AsApp $true
46+ $null = New-GraphPOSTRequest - uri " https://graph.microsoft.com/beta/identity/conditionalAccess/policies/$ ( $CheckExisting.id ) " - tenantid $tenantfilter - type PATCH - body $RawJSON - AsApp $true
4747 }
4848 }
4949
@@ -65,7 +65,7 @@ function Set-CIPPCAExclusion {
6565 }
6666 $RawJson = ConvertTo-Json - Depth 10 - InputObject $NewExclusions
6767 if ($PSCmdlet.ShouldProcess ($PolicyId , " Remove exclusion for $UserID " )) {
68- New-GraphPOSTRequest - uri " https://graph.microsoft.com/beta/identity/conditionalAccess/policies/$ ( $CheckExisting.id ) " - tenantid $tenantfilter - type PATCH - body $RawJSON - AsApp $true
68+ $null = New-GraphPOSTRequest - uri " https://graph.microsoft.com/beta/identity/conditionalAccess/policies/$ ( $CheckExisting.id ) " - tenantid $tenantfilter - type PATCH - body $RawJSON - AsApp $true
6969 }
7070 }
7171
You can’t perform that action at this time.
0 commit comments