Hi Stain,
Thank you for your response, we are using Keycloak 1.2.0 final and in that version we do
have that problem. If we update only particular element in user update call it will
truncate (turn to default values in some cases eg : boolean).
Best Regards,
Chamantha
Date: Thu, 25 Jun 2015 10:20:53 -0400
From: stian(a)redhat.com
To: chamantha(a)outlook.com
CC: keycloak-user(a)lists.jboss.org
Subject: Re: [keycloak-user] Update the user only with required fields
You can just send the user json and only include the attributes you want to change.
----- Original Message -----
> From: "Chamantha De Silva" <chamantha(a)outlook.com>
> To: keycloak-user(a)lists.jboss.org
> Sent: Thursday, 25 June, 2015 1:22:31 AM
> Subject: [keycloak-user] Update the user only with required fields
>
> Hi Team,
>
> There are situations that we use update user rest API, to update just one
> element of user (eg: enabled : false etc.) .
> This requires a pre fetched user object from the GET user call, other wise
> rest of the user information tend to be truncated after the update call.
>
> Is there a possibility to update only specific elements of the user instead
> of sending whole the user object (objective is to avoid the GET call right
> before the update call and avoid possible tendency of data truncations )?
> Your kind reply is highly appreciated.
>
> Best regards,
> Chamantha
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/keycloak-user