# Customizing user attributes in version 24.0.4

**URL:** <https://forum.keycloak.org/t/customizing-user-attributes-in-version-24-0-4/26294>\
**Category:** Getting advice\
**Created:** [May 30, 2024, 7:44am UTC](https://forum.keycloak.org/t/customizing-user-attributes-in-version-24-0-4/26294 "2024-05-30T07:44:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LogaMithran](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/logamithran/32/9678_2.png) [@LogaMithran](https://forum.keycloak.org/u/LogaMithran)\
**Post date:** [May 30, 2024, 7:44am UTC](https://forum.keycloak.org/t/customizing-user-attributes-in-version-24-0-4/26294/1 "2024-05-30T07:44:13Z")

</div>

Hi keycloak users,

I’m trying to build a user attribute in the user profile section. I am able to create a dropdown with 2 to 3 values by default.  
options : { “options”:: [1,2,3] }

This values might change in future, so I need to fetch the dropdown dynamically either from the database or an exposed external API.  
I might need a help here to create custom UpConfig adapter to replace those values or is there a better way to do this?

---

<div class="post-metadata">

**Author:** ![LogaMithran](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/logamithran/32/9678_2.png) [@LogaMithran](https://forum.keycloak.org/u/LogaMithran)\
**Post date:** [June 1, 2024, 8:46am UTC](https://forum.keycloak.org/t/customizing-user-attributes-in-version-24-0-4/26294/2 "2024-06-01T08:46:54Z")

</div>

I’ve attempted to customize this by creating a custom UserProfile provider, but I haven’t been successful so far. However, it seems that these forms are quite flexible and customizable. I’m curious if anyone else has had success with this. Any assistance in this matter would be greatly appreciated :).

---

<div class="post-metadata">

**Author:** ![LogaMithran](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/logamithran/32/9678_2.png) [@LogaMithran](https://forum.keycloak.org/u/LogaMithran)\
**Post date:** [June 3, 2024, 6:57am UTC](https://forum.keycloak.org/t/customizing-user-attributes-in-version-24-0-4/26294/3 "2024-06-03T06:57:03Z")

</div>

So, I’ve tried to extend this class `DeclarativeUserProfileProvider` and implemented this interface `UserProfileProvider`. By overriding `getConfiguration()`, I can able to achieve this by calling my external API.

But is this the correct way of doing it?
