Here’s my scenario:
- I’m customized the email template for activation emails sent to my users
- I use the
displayNamefield (which is a default Okta user profile field) to store the user’s preferred name, which could differ from their given/legal name
I tried to use
The User Model and EL documentation don’t give any indication that this field is unsupported in EL expressions, but way down on this page is a list of supported variables in email templates that excludes
displayName. From this I gathered that you can’t use
user.displayName in email templates, although it seems like a strange omission.
My feature suggestions:
- If an unsupported variable is entered into an email template, I’d expect to get an error telling me what’s wrong
- It would be great to be able to use
user.displayNamein email templates!