Hi Dmitry Telegin,
Thanks for reply.
I want to save some custom attributes against each realm in REALM_ATTRIBUTE
table.
I have added one custom attribute by modifying realm-detail.html refer
attached screenshot yellow hi-lighted one. for that custom attribute I
given id 'displayNameTest' but when I save getting response code from
server 400 (Bad request) with error msg '*Unrecognized field
"displayNameTest" (class
org.keycloak.representations.idm.RealmRepresentation), not marked as
ignorable**' *. I think some where you are validating the filednames/id.
As a developer i know about REALM_ATTRIBUTE table but our clients don't
know, they want to add some custom fields in admin console itself.
I we add new Tab(like General, Login, Keys ) say 'Attributes' it would be
better.
Please help me in this.
Regards
Hari Prasad N
On Fri, Jan 4, 2019 at 8:58 PM Dmitry Telegin <dt(a)acutus.pro> wrote:
Hello Hariprasad,
Keycloak already supports custom realm attributes, it's only that they are
not reflected in the GUI. However, you can access them via
RealmModel::{get|set}Attribute() methods, or via the REALM_ATTRIBUTE
database table.
Good luck,
Dmitry Telegin
CTO, Acutus s.r.o.
Keycloak Consulting and Training
Pod lipami street 339/52, 130 00 Prague 3, Czech Republic
+42 (022) 888-30-71
E-mail: info(a)acutus.pro
On Thu, 2019-01-03 at 18:13 +0530, Hariprasad N wrote:
> Hi All,
>
> Can we add realm level custom attributes.
>
--
Thanks & Regards,
Hari Prasad N
Senior Software Engineer
-------------------------------------------------
Ramyam Intelligence Lab Pvt. Ltd.,
Part of Arvato
3rd & 5th Floors, Mithra Towers, 10/4, Kasturba Road,
Bangalore – 560001, Karnataka, India.
Phone: +91 80 67269266
Mobile: +91 7022156319
E-Mail: *hariprasad.n(a)ramyamlab.co <
http://ramyamlab.co>m*
*www.ramyamlab.com* <
http://www.ramyamlab.com/>