01-01-2023 10:56 PM
Hello! Regarding this topic. I was trying to do the same, but it does not work for me. Could somebody help? https://forums.saviynt.com/t5/general-discussions/using-user-groups-in-email-templates/m-p/2820/thre...
01-02-2023 04:36 AM
What’s error share logs and your condition currently configured
01-04-2023 03:48 PM
Hello, @rushikeshvartak Thank you for the response. Here you go:
This is the group. It has members with active email addresses:
Here is the email template with the query provided in the link above which mentioned that worked:
And here are the email templates configured at the endpoint level:
Am not sure if there's anything that I missed reason it didn't work.
01-04-2023 05:23 PM
Try attaching email template in workflow
01-04-2023 07:31 PM
Still did not send any emails.
01-04-2023 08:42 PM
what is error in logs
01-06-2023 08:30 AM
What is the error in logs when you use the template at endpoint level?
01-06-2023 12:47 AM
Hi,
I tried using the same syntanx:
${com.saviynt.ecm.identitywarehouse.domain.Users.findAllByIdInList(com.saviynt.ecm.identitywarehouse.domain.Usergroup_users.findAllByUser_groupkey(com.saviynt.ecm.identitywarehouse.domain.Usergroups.findByUser_groupname("test-usergroup")?.id)?.userkey).email?.join(',')}
under the endpoint to send the email, it gives the below error:
Regards,
Shubham
01-06-2023 08:42 AM - edited 01-06-2023 10:15 AM
What version of Saviynt you have in your environment. Looking at error it is not recognizing the variable
01-08-2023 07:15 PM
Version is 2020.1
01-09-2023 02:26 AM
did you tried in email body variables are general methods of saviynt so ideally it should work
01-09-2023 06:20 PM
Hi, @rushikeshvartak hmm, it didn't work, so when I tried to remove the email body and retain the "Test" plus hard coding my email address to the TO field, it did work. hence it seems that there is something wrong with the following:
${com.saviynt.ecm.identitywarehouse.domain.Users.findAllByIdInList(com.saviynt.ecm.identitywarehouse.domain.Usergroup_users.findAllByUser_groupkey(com.saviynt.ecm.identitywarehouse.domain.Usergroups.findByUser_groupname("IT Users")?.id)?.userkey).email?.join(',')}
01-09-2023 06:35 PM
try group name without space
01-09-2023
07:41 PM
- last edited on
01-10-2023
09:40 AM
by
Dave
So this is what it looks like now, it still didn't work. Have you tried this before?
[This post has been edited by a Moderator to remove sensitive information from the screenshots.]
01-10-2023 04:11 AM
Try creating new template
01-09-2023 09:44 PM
I tried a different group name, the one without a space in it. I also tried to bold format the group name as well as the one without a format, but nothing worked. :'(
01-06-2023 10:05 AM
Print content in email body to check what values are populated
01-08-2023 07:16 PM
Used "Test" in the body. Works good with hard coding the email but not with the syntax provided above
01-08-2023 07:29 PM
Screenshot ?
01-08-2023 07:59 PM
I quite don't understand. Does it work for you? How?
01-08-2023 07:59 PM
Hello All! I used "Test" in the body but it didn't work.
01-08-2023 08:02 PM
Print Below in Email Body (Make sure you have group marked bold
${com.saviynt.ecm.identitywarehouse.domain.Users.findAllByIdInList(com.saviynt.ecm.identitywarehouse.domain.Usergroup_users.findAllByUser_groupkey(com.saviynt.ecm.identitywarehouse.domain.Usergroups.findByUser_groupname("test-usergroup")?.id)?.userkey).email?.join(',')}
01-08-2023 08:41 PM
Oh yeah! Thank you for pointing that out.
Hmm as for the email: I did what I understood in your instructions but nothing happened though.
01-08-2023 09:08 PM
hardcode your email in to address
01-08-2023 09:35 PM
Sorry not yet resolved. I mistakenly click Accept... button
01-08-2023 09:36 PM
Screenshot