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

Fetch Role Owner Email in Email templates

n_p123
New Contributor II
New Contributor II

Hi,

The requirement is to send email notifications to Role Owners in case of any role request or approvals.

I tried using following variables to fetch Role Owner email Id but nothing seems to be working. 

${roleOwner.email}, ${owner.email}, ${ownerEmail}, ${owners.email}

Need help!

Thanks.

9 REPLIES 9

rushikeshvartak
All-Star
All-Star
  • Where is email attached ?
  • To get what variables are present to use in the email template, check using the below expression. By putting it in the email body, it will print all variable names with values, and then accordingly, you can use it:


    ${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi @rushikeshvartak, the mail is attached to workflow and I need Role owner email id using variable in email template in order to send notifications.

Share output of code shared also confirmed workflow attached to add access or role modification 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

@rushikeshvartak it's for both Add Access & Role modification.

Attaching screenshot of workflow used for role modification. when any role is modified, the below wf will be triggered and notification email should go to role owners.

n_p123_0-1716967196198.png

In 'To' field of 'Update Role Request Template', I tried giving 

${roleOwner.email}, ${owner.email}, ${ownerEmail}, ${owners.email} & ${roleOwnerEmail}

but nothing is working.

${assignee.email}

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

If the request is approved by someone who is not role owner but has Admin privileges, the email will not go to Role owners. It will go to only that person as that person is assignee now.

In case, the request is approved by admin, role owners should also be notified with the action taken.

Currently once request is approved there is no configuration to send email to other approvers


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Raghu
Honored Contributor
Honored Contributor

try below @n_p123  , already some of members tried above but no luck

https://forums.saviynt.com/t5/identity-governance/binding-variable-for-entitlement-owner/m-p/74986

try below

${roleOwnerEmail}


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

n_p123
New Contributor II
New Contributor II

Hi @Raghu, no, '${roleOwnerEmail}' didnt work.