How do I pass specific user attributes to Freemarker templates in RH-SSO?
Issue
How do I pass specific user attributes to Freemarker templates in RH-SSO?
In the email theme .ftl templates we have , "user.getUsername()" but not to other attributes. Our problem is that we do need the first name of the user "user.getFirstname()" in the header of the email (Hello < access to the username of the user ( ${msg("salutation FirstName>, …), which does not work because the model is not passed accordingly server-side. In general is there a way to pass specific user data to the template engine?
Environment
- Red Hat Single Sign-On (RH-SSO)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.