Custom read-only user attributes

449 views
Skip to first unread message

Björn Eickvonder

unread,
Dec 8, 2021, 4:24:27 AM12/8/21
to Keycloak User
Hi,

I have a question regarding custom read-only user attributes.
The documentation 


states that I should configure the "legacy-user-profile", but the testsuite on GitHub


uses "declarative-user-profile". What is the difference? Which one is correct?

Additionally I'm struggling with the difference between read-only-attributes and admin-read-only-attributes. Regarding custom attributes I can only change them in the admin console anyway right? So what is the purpose of the read-only-attributes property? Is it only relevant in case of a custom account console theme displaying further attributes?

Björn

Björn Eickvonder

unread,
Dec 8, 2021, 4:26:55 AM12/8/21
to Keycloak User
Additionally I also discovered a bug. If I set an attribute as a list of values, it is displayed as "value1##value2" in the admin console. If it is read-only I can still change value2, it only fails if I try to change value1.
Reply all
Reply to author
Forward
0 new messages