Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

User group in mail template - issue still exists

Alex
Regular Contributor
Regular Contributor

Hi, 

need to open a new post as all other referenced ones are already closed, without a working solution.

https://forums.saviynt.com/t5/identity-governance/can-t-send-analytics-report-via-email-template-to-...

https://forums.saviynt.com/t5/identity-governance/email-to-user-group/m-p/20413#M9773

https://forums.saviynt.com/t5/general-discussions/using-user-groups-in-email-templates/m-p/2820/thre...

https://forums.saviynt.com/t5/general-discussions/using-user-groups-in-email-templates/m-p/2820#M958

The problem is still the same:
in "to" the following value is defined: 
${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 Team")?.id)?.userkey)?.email.join(',')}

Logs show the following:
java.lang.Exception: Template contains string which are not allowed com.saviynt"

I tried the proposed method and added the binding in the the body, with the following result:

Alex_0-1686067256073.png

Doest this mean, that this is no longer supported and we are not able to address all users within a user group?

Thanks



2 REPLIES 2

Rishi
Saviynt Employee
Saviynt Employee

Can you confirm what is your application version. The class files are not exposed in the latest versions so that its not working.

Can you provide the business requirement so that we can figure out an alternate solution.

Alex
Regular Contributor
Regular Contributor

Hi, 

23.5 is the current version.

We have different user groups that have a dedicated task within saviynt. Therefore we want to keep the management of those groups within Saviynt. If one of the tasks is done, the group should be informed about the fulfillment.
A shared mailbox for this group is no option as we split up again the management of the group and group members. 
Adding the users addresses to the template is also no option, as the members can always change.