Some institutions need to bulk update the user records with data from the central administration. Only some fields of user records should be updated.
MODKBEKBJ-447 has already implemented a PATCH.
There are other use cases.
This sets "active" and "patronGroup" only, all other properties remain unchanged.
PostgreSQL has the - operator to delete a jsonb property, and PostgreSQL 13 has the jsonb_set_lax function that also can delete nested jsonb properties.
RMB has a method that can update a single jsonb property using jsonb_set: https://github.com/folio-org/raml-module-builder/blob/v30.2.4/domain-models-runtime/src/main/java/org/folio/rest/persist/PostgresClient.java#L1325-L1360
Create a PostgresClient method that can update and/or delete multiple jsonb properties.
Create a PgUtil PATCH method that uses it.