
3l5bw (3l5bw) asked a question.
Is there any way that we can use ternary operator in email template ?
I'm trying to do the following in email template :
if the user belongs to group1 , I have to give append content in mail template as <td> 'Welcome' </td>
if the user belongs to group2 , I have to give append content in mail template as <td> 'Thanks for joining' </td>.
So how to use ternary operator for this iniside Email template?
Note: I tried some EL function , that is allowing only certain function to use.

Hi,
Baver here. All the functions that you can use are the ones documented.
https://help.okta.com/en/prod/Content/Topics/Settings/Settings_Email.htm
If you want to discuss this in more details, feel free to open a ticket with Okta Support.
Thank you,
Baver Deacu,
Level 2 Support Engineer at Okta
Hi Baver,
Thanks for your response. 🙂 To be honest, I have already gone through the link few weeks earlier which you have shared above.
Also I have gone through the below links.
https://support.okta.com/help/Documentation/Knowledge_Article/Email-and-SMS-Options-1077615107
https://support.okta.com/help/Documentation/Knowledge_Article/Custom-HTML-End-User-Templates
But none of the links helped me.
At-least can you help me out like how we can use the custom user attribute in EMail template. (i.e,attribute which created for user profile in okta)
I read some okta docs for this, but It seems like we cannot use custom attribute in EMail Template.
If you think okta supports custom attribute in email template , then
Let say I'm having an custom attribute "custom_user_details_url" in okta user profile created as a String type and I need to use that custom attribute in Email template.
I have tried using ${user.custom_users_details_url} in Email template. That didn't help me out.
Any answers are appreciated. Thanks in advance. @baver.deacu1.5626825884606619E12 (Vendor Management)
may okta can help - do not see the info in above link