Prabath
Prabath

Reputation: 207

Add custom fields to keycloak user creation

I need to add some additional parameters to the user profile in keycloak, also it should be possible to add when create user via rest and retrieve the details, please help me with an idea about this.

Upvotes: 6

Views: 12100

Answers (1)

sventorben
sventorben

Reputation: 1912

Please check the 'Custom User Attributes' section in the Keycloak Developer Guide

All attributes can be retrieved and stored via the REST API. There is a map of attributes holding all attributes in the UserRepresentation

Edit:

Keycloak now has a User Profile (currently Technology Preview) for declarative definition of user attributes. For details please see the Server Administration Guide

Upvotes: 3

Related Questions