12-14-2022 08:12 AM
Hi Team,
We have requirement to send email notifications to approvers when the user submitted the request access. We configured approvers under user groups, and we added the user groups in resource owner attribute under endpoint.
Note: Two users (user1 and user2) present in user group.
In email template:
To : ${assignee.email}
Actual result:
To: user1@abc.com -> email 1
To: user2@abc.com -> email 2
Expected result:
To: user1@abc.com user2@abc.com
Instead of generating 2 emails we could I like to generate 1 email that contains all approver email in "To" address.
Thanks in advance!!
Regards,
Yogaraj K
12-14-2022 08:14 AM
This is default process of saviynt
12-14-2022 08:45 AM
@rushikeshvartak so we can't achieve this in Saviynt?
12-14-2022 08:59 AM
No , we can concat emails using some groovy script
12-14-2022 09:02 AM
Can you please let me know how to concat emails using groovy script.
12-14-2022 09:24 AM
${def res = ''; assignee?.split(',')?.eachWithIndex{ num, idx -> res = res + com.saviynt.ecm.identitywarehouse.domain.Users.get(num)?.email + ',';}; return res;}
12-14-2022 07:06 PM
Can I use the above script instead of using ${assignee.email} in email template?