[keycloak-user] How update the locale value in user profile with REST API ?

Geoffrey Cleaves geoff at opticks.io
Mon Nov 12 08:42:29 EST 2018


Does this body work? Is locale an attribute?

{
"username": "username",
"enabled": true,
"emailVerified": true,
"email": "email",
"disableableCredentialTypes": ["password"],
"credentials": [{
"value": "pass123",
"type": "password"
}],
"attributes": {
"company": ["company"],
"locale": ["fr"]
}
}


Regards,
Geoffrey Cleaves







On Mon, 12 Nov 2018 at 12:37, David F <mad_style42 at hotmail.com> wrote:

> Hi,
>
> I use the doc to update my profile with REST API
>
>
> PUT /{realm}/users/{id}
>
> but if I want to change the locale value ("en", "fr"...), it's impossible.
>
> I have this response "Unrecognized field &quot;locale&quot; (class
> org.keycloak.representations.idm.UserRepresentation), not marked as
> ignorable" because in my body object I use "locale" key for "en" value for
> example.
>
> I don't see in the doc how send my new locale value in my body object.
>
> Thanks for your help 😊
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list