3

?

Does anybody know how can I set locale field while creating new user using keycloak admin client (java library). I am using keycloak 3.2.0.FINAL version.

And is this possible to set this for all existing users also using admin-client?

Vibs
  • 307
  • 2
  • 10
  • 2
    The locale is included in the user representation as an attribute: https://stackoverflow.com/a/32955072/1199132 There's a `Map` containing the attributes: http://www.keycloak.org/docs-api/2.5/rest-api/index.html#_userrepresentation You just need to use the API to create it. – Aritz Apr 06 '18 at 12:12
  • 1
    Thanks Xtreme Biker.. since it was a comment, i couldn't accept your answer. – Vibs Apr 06 '18 at 12:50

1 Answers1

15

Got the answer- userRepresentation.singleAttribute("locale", "en");

Vibs
  • 307
  • 2
  • 10