= Custom User Attributes If you have custom user data you want to store and manage in the admin console, registration page, and user account service, you can easily add support for it by extending and modifying various Keycloak <<_themes,themes>>. == In admin console To be able to enter custom attributes in the admin console, take the following steps . themes/mytheme/admin +`mytheme` . theme.properties + [source] ---- parent=keycloak import=common/keycloak ---- . themes/base/admin/resources/partials/user-attributes.html +`themes/mytheme/admin/resources/partials/user-attributes.html` . user-attributes.html + [source] ----
---- +`ng-model` +`user.attributes.ATTR_NAME` . Change the theme for the admin console. Save it, then refresh your browser, and you should now see these fields in the User detail page for any user. == In registration page To be able to enter custom attributes in the registration page, take the following steps . themes/mytheme/login +`mytheme` . theme.properties + [source] ---- parent=keycloak import=common/keycloak styles= ../patternfly/lib/patternfly/css/patternfly.css ../patternfly/css/login.css ../patternfly/lib/zocial/zocial.css css/login.css ---- . themes/base/login/register.ftl +`themes/mytheme/login/register.ftl` . register.ftl + [source] ----
---- +`user.attributes.ATTR_NAME` . Change the theme for the login to your new theme. Save it, then refresh your browser, and you should now see these fields in the registration. == In user account profile page To be able to manage custom attributes in the user account profile page, take the following steps . themes/mytheme/account +`mytheme` . theme.properties + [source] ---- parent=patternfly import=common/keycloak styles= ../patternfly/lib/patternfly/css/patternfly.css ../patternfly/css/account.css css/account.css ---- . themes/base/account/account.ftl +`themes/mytheme/account/account.ftl` . account.ftl + [source] ----
---- +`user.attributes.ATTR_NAME` . Change the theme for the account to your new theme. Save it, then refresh your browser, and you should now see these fields in the account profile page.