Skip to content

Commit

Permalink
Merge pull request #19 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
[pull] dev from KelvinTegelaar:dev
  • Loading branch information
pull[bot] authored Jan 23, 2025
2 parents e2b7f91 + 49a3d4c commit 270eafc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/CIPPCore/Public/New-CIPPCAPolicy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function New-CIPPCAPolicy {
#Remove context as it does not belong in the payload.
try {
$JsonObj.grantControls.PSObject.Properties.Remove('authenticationStrength@odata.context')
$JSONObj.templateId ? $JSONObj.PSObject.Properties.Remove('templateId') : $null
if ($JSONObj.conditions.users.excludeGuestsOrExternalUsers.externalTenants.Members) {
$JsonObj.conditions.users.excludeGuestsOrExternalUsers.externalTenants.PSObject.Properties.Remove('@odata.context')
}
Expand Down

0 comments on commit 270eafc

Please sign in to comment.