pingidentity / scim2

The UnboundID SCIM 2.0 SDK for Java
184 stars 75 forks source link

Support ADD patch ops targeting existing values #230

Closed kqarryzada closed 1 month ago

kqarryzada commented 2 months ago

In the 3.0.0 release, we implemented support for ADD patch operations with a value filter. The SDK would always append a new value to the array, since it is technically an "add". However, this does not play well with SCIM provisioners that send multiple individual updates, since these intend to target the same value within a multi-valued attribute, such as a user's work email. The intention is to add a new value to the field that matches the path filter (e.g., "type eq \"work\"").

The new behavior is available via an opt-in setting in a static boolean variable, PatchOperation.APPEND_NEW_PATCH_VALUES_PROPERTY. To opt into this setting, set the value of this variable to false.

As a result of this change, the version of the SCIM SDK has been updated to 3.2.0-SNAPSHOT.

Reviewer: vyhhuang Reviewer: dougbulkley

JiraIssue: DS-49194 Resolves #213