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

Send Email to User Group

narayandas
New Contributor III
New Contributor III

Hi Team,

We have a requirement for a disconnected application where we need to email a group of users (team). 

narayandas_0-1730861107824.png

I tried with the below code but it's not working.

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

narayandas_1-1730861507904.png

also, I tried the above code in the email body it's throwing an error.

narayandas_2-1730861657857.png

Kindly help me to achieve this use case.

Thanks,
Narayan Das

10 REPLIES 10

NM
Esteemed Contributor
Esteemed Contributor

@narayandas where is email attached workflow or endpoint??


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

narayandas
New Contributor III
New Contributor III

endpoint

NM
Esteemed Contributor
Esteemed Contributor

@narayandas try tasks.owner.email

 


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

narayandas
New Contributor III
New Contributor III

Thanks for your reply. 
tasks.owner.email is also not working. 
and I want to send mail to a specific group of people so the tasks.owner.email will not get user mail which I have added to the Blackline_Team user group.

Use  ${task.endpoint.ownersEmail} 


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

NM
Esteemed Contributor
Esteemed Contributor

@narayandas try this

${owners.join(',')} 


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

rushikeshvartak
All-Star
All-Star

use ${task.endpoint.ownersEmail} 

https://forums.saviynt.com/t5/identity-governance/task-creation-email-for-manual-provisionning-team/...


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

narayandas
New Contributor III
New Contributor III

Hi @NM & @rushikeshvartak ,
I have tried both${owners.join(',')}  and ${task.endpoint.ownersEmail} and also 

${task.endpoint.ownersEmail.join(',')}  But not working.

Did I miss any steps in between?
- add group in Multi-Step Provisioning Owners
narayandas_0-1730871386940.png

- Email template

narayandas_1-1730871427188.png

 

And I have received an email where nothing is in the To section.
 narayandas_3-1730871563332.png

 

Does it your multi step or one step ? If one step then use normal user group


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

Yes, it's one step. Now working with ${task.endpoint.ownersEmail} . 

Thank you