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.
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 callRemove-NullProperties
which is the problematic function.Mitigation
$CreatedRule = New-OktaGroupRule -GroupRule $NewGroupRule -IncludeNullValues