Add more field in admin console management

Hi everyone
I want to handle when sending email failure, so I custom DefaultEmailSenderProvider to retry sending an email. But now I want to config the number of retries and time sleep between retries on the admin console. So I want to add some fields in the tab email. How can I archive that?


Thank you very much.

You can build a custom admin theme. With the “old” theme (from your screenshot) it is fairly easy by customizing the FTL templates. In the “new” theme, it is harder, as you need to fork and build the whole thing.
Docs here: Server Developer Guide
Old admin theme code here: keycloak/js/apps/admin-ui at main · keycloak/keycloak · GitHub
New admin theme code here: keycloak/themes/src/main/resources/theme/base/admin at 20.0.0 · keycloak/keycloak · GitHub

BTW, the “old” admin has been removed from version 21+, so it’s advisable to build for the “new”

1 Like

Hi @xgp, I have already built a custom admin theme and added some fields but when I click the button save, it is not saved into the database. My keycloak’s version is 12.0.4. Thank you.

Without seeing your code and configuration, there’s no way we can help.