# Adding User Profile feature to Keycloak 4.3

**URL:** <https://forum.keycloak.org/t/adding-user-profile-feature-to-keycloak-4-3/12463>\
**Category:** Extending the server\
**Tags:** account-console\
**Created:** [December 5, 2021, 9:56pm UTC](https://forum.keycloak.org/t/adding-user-profile-feature-to-keycloak-4-3/12463 "2021-12-05T21:56:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammadmjn](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/mohammadmjn/32/726_2.png) [@mohammadmjn](https://forum.keycloak.org/u/mohammadmjn)\
**Post date:** [December 5, 2021, 9:56pm UTC](https://forum.keycloak.org/t/adding-user-profile-feature-to-keycloak-4-3/12463/1 "2021-12-05T21:56:26Z")

</div>

We’re running Keycloak 4.3 on our servers. We need to disable updating (editing) first name and last name fields in account page (I disabled these fields in account UI, but when click on submit I get error that says: `Please specify first name / last name`). I saw that from Keycloak 14 and above, `User profile` feature has been added which helps to manage user profile attributes like allowing the user to be able to edit these fields or not. I want to know is there a way to add this feature to Kecyloak 4.3 or not? If yes, would you please guide me how to do it?  
Also I read this [thread](http://forum.keycloak.org/t/how-to-disable-first-and-last-name-in-the-user-account-service/1965/4) but I didn’t get how I can disable validation of these two fields in the Keycloak server. If the above approach (Adding User Profile feature) is not possible, would you give me a better insight how to do this one (with an example code will be more helpful)?

---

<div class="post-metadata">

**Author:** ![zonaut](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/zonaut/32/666_2.png) [@zonaut](https://forum.keycloak.org/u/zonaut)\
**Post date:** [December 6, 2021, 9:09am UTC](https://forum.keycloak.org/t/adding-user-profile-feature-to-keycloak-4-3/12463/2 "2021-12-06T09:09:46Z")

</div>

Hi,

you can get an example on how to disable this in the example on [keycloak-extensions/spi-registration-profile at master · zonaut/keycloak-extensions · GitHub](https://github.com/zonaut/keycloak-extensions/tree/master/spi-registration-profile)  
It’s possible you need to look somewhat deeper which class but it points you in the right direction at least, hopefully.

---

<div class="post-metadata">

**Author:** ![mohammadmjn](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/mohammadmjn/32/726_2.png) [@mohammadmjn](https://forum.keycloak.org/u/mohammadmjn)\
**Post date:** [December 6, 2021, 9:39pm UTC](https://forum.keycloak.org/t/adding-user-profile-feature-to-keycloak-4-3/12463/3 "2021-12-06T21:39:22Z")

</div>

Hi @zonaut,  
First, thank you for providing an example for this feature for the community. I’ve checked [this](https://github.com/zonaut/keycloak-extensions/tree/master/spi-registration-profile) example which is for registration page. I got to your GitHub repo following this [thread](http://forum.keycloak.org/t/sign-up-without-first-and-last-name/1794/4). But I think we have some differences between registration flow and account flow which made me confused how to apply those changes in your code for the account page. If I’m correct, you mentioned [here](http://forum.keycloak.org/t/how-to-disable-first-and-last-name-in-the-user-account-service/1965/9) that `AccountFormService` is not a SPI while `registration` flow is a SPI. I’m new to Keycloak and I don’t have any insights how to implement such a thing for profile account flow. Would you please give me more hints?
