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

Issue in populating the assignee manager full name in Request Rejection email

Bhargav
New Contributor
New Contributor

Hi Team,

We have requirement to populate the assignee manager firstname+lastname in request rejection email. The email template is attached in workflow.

With below config i can populate the assignee username, but we need to populate assignee firstname and lastname.

 if(accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('owner')}.collect{it.attributeValue}}.get(0).toString().replaceAll(/^\[|\]$/,'')!='') print "${accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('owner')}.collect{it.attributeValue}}.get(0).toString().replaceAll(/^\[|\]$/,'')}"

if i'm using the below config, it populates the some other user firstname and lastname.

if(accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('owner')}.collect{it.attributeValue}}.get(0).toString().replaceAll(/^\[|\]$/,'')!='') print "${assignee.firstname}${assignee.lastname}"

Please help me on how can we populate the assignee firstname and lastname?

TIA.

Bhargav.

2 REPLIES 2

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @Bhargav,

Assignee variable will work only when request is pending for approval.
Once the request is rejected, You can try with ${allRejectors.collect{it.firstname +' ' + it.lastname}}

Thanks.

If you find the above response useful, Kindly Mark it as "Accept As Solution".

rushikeshvartak
All-Star
All-Star
  • What is type of request ?

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