okta / okta-powershell-cli

Powershell CLI for communicating with the Okta API
Other
15 stars 4 forks source link

Nested arrays are not properly serialized to JSON in Remove-NullProperties #33

Closed laura-rodriguez closed 5 months ago

laura-rodriguez commented 5 months ago

There are certain scenarios where the arrays are not serialized properly. A mitigation for these cases is to invoke the command passing the IncludeNullValues flag which prevents the command to call Remove-NullProperties which is the problematic function.

Mitigation

$CreatedRule = New-OktaGroupRule -GroupRule $NewGroupRule -IncludeNullValues