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

How can we send an email to ResouceOwner from analytics where Resouce owner is UserGroup

sumalatham
New Contributor
New Contributor

Hello Team

How can we send an email to resouceowner from analytics where Resouce owner is UserGroup.

We have tried the below snippets in To Address. But its not working and getting the below errors.

1.${com.saviynt.ecm.identitywarehouse.domain.Users.findAllByIdInList(com.saviynt.ecm.identitywarehouse.domain.Usergroup_users.findAllByUser_groupkey(com.saviynt.ecm.identitywarehouse.domain.Usergroups.findByUser_groupname("Testusergroup")?.id)?.userkey)?.email.join(',')}

Error:"com.saviynt.custom.exceptions.InvalidKeywordException: Template contains string which are not allowed com.saviynt.\n"

2.${Users.findAllByIdInList(Usergroup_users.findAllByUser_groupkey(Usergroups.findByUser_groupname("AnaplanUsergrp")?.id)?.userkey)?.email.join(',')}

Error: "groovy.lang.MissingPropertyException: No such property: Users for class: SimpleTemplateScript347

Please can you provide correct snippet for this?

Thanks

Sumalatha M

2 REPLIES 2

pruthvi_t
Saviynt Employee
Saviynt Employee

Hi @sumalatham ,

Greetings.

Did you try to add the resource group as the owner of the analytics. So that the report would be sent as an attachment every time the control is ran.

Thanks,

 


Regards,
Pruthvi

Thank you @pruthvi_t .

Yes, I have tried resource owner group as owner of the analytic and got this error in the logs.

Logs:

- Exception :{"log":"groovy.lang.MissingPropertyException: No such property: email for class: com.saviynt.ecm.identitywarehouse.domain.Usergroups\n"

 

Thanks

Sumalatha