[keycloak-user] how to set user's locale when importing them into keycloak via Federation Provider

Istvan Orban istvan.orban at gmail.com
Thu Mar 16 11:05:21 EDT 2017


Hello,

I am writting a user federation provider and it works great! Thanks for the
help from the forum members. At this point I reached an issue that seems
trivial but I can not seem to find the solution.

When I am importing the user via a federation provider. I have the user's
locale avialable from the external system. Although I do not seem to find a
way I can set this onto the user object.

org.keycloak.models.UserModel does not seem to have a locale field like
firstName.

It has a constant defined in the class called LOCALE but it is never used.

Also there is a LocaleHelper class but the setUserLocale is private hence I
can not use it.

Thanks for any suggestions.

-- 
Kind Regards,


More information about the keycloak-user mailing list