Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

User Firstname and lastname showing null in Actionable email

swagat
New Contributor II
New Contributor II

Hi All,

We have configured Actionable email for new user identity from workflow. But as the user identity is not present in EIC, in the mail it is not fetching requested user firstname and lastname and showing null. Can someone please help what can we include in the mail template in place of ${user.firstname} ${user.lastname}.

Thanks.

Screenshot 2024-08-05 165221.png

 

sasd231.png

8 REPLIES 8

Raghu
All-Star
All-Star

@swagat  please can confirm how mail triggering via rule and share rule configuration screenshot

how creating first and lastname via global config initial setup?


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

swagat
New Contributor II
New Contributor II

Hi @Raghu ,

Thank you for your response. We are triggering the mail through Manager workflow process. We have added the actionable mail to the workflow and whenever we are creating any user using "Create User Form" the email is triggering through "Email History Job (EmailHistoryJob)" job.

Screenshot 2024-08-05 201004.png

Please validate supported variables.

Purpose :

To get what variables are present to use in the email template.

Email Template steps :

keep Advanced HTML CSS flag is checked

Keep your email Address in TO

TO /CC/BCC & Subject - Don't use any dynamic variables

Add only below code in Email Body
${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}

Output : using the below expression. By putting it in the email body, it will print all variable names with values, and then accordingly, you can use it:


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Thanks for your suggestion @rushikeshvartak . But still we are getting Null value in email after adding below code in Email Body : 
${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}

Also there is some other things showing in email which are not required. Please find the screenshot below :

Screenshot 2024-08-06 125837.png

NM
Esteemed Contributor
Esteemed Contributor

Hi @swagat , as the user profile is still not created it is not able to fetch the requested for first name and last name.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

swagat
New Contributor II
New Contributor II

Hi @NM ,

Yes that is understandable, But we want to send approval email on the user profile creation. Can't we use any other dynamic attribute to populate first name and last name?

Thanks

You can use dynamic attribute and show on email dynamic attribute will be stored in accessItems

{accessItems.findAll{it.request_access_attrss.size()}.collect{it.request_access_attrss.findAll{!it.attributeName.toString().equalsIgnoreCase('ENT_BY_RULE_ADD'))}.collect{it.attributeName.toString() + ':' +it.attributeValue}.join('###')}}

Obtains all the dynamic attributes in the request.

${accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('Location')}.collect{it.attributeValue}}.get(0)}

${accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('Location')}.collect{it.attributeValue}}}

where, Location is the dynamic attribute name.


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

${accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('DA')}.collect{it.attributeValue}}.get(0)} worked for me.

Thanks @rushikeshvartak