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

Conditionally send email notification after successful provisioning

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 28 2021 at 23:19 UTC

After a new user is provisioned on Active Directory, Exchange and Zoom. I need to send an email notification based on the user’s device (laptop or VDI).

 

How can I configure this? Sending notifications based on conditional statements.


image



This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
8 REPLIES 8

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 29 2021 at 01:21 UTC

Hi Yusuf,


How does the user select the device ? Do they make a request (to an endpoint configured in Saviynt) or is that selection determined as part of user attribute ?


Coud you elaborate your use case for us to have a better understanding ?




Regards,

Avinash Chhetri

 

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 29 2021 at 01:34 UTC

The user is created using the user registration form (User Management > Create User Request). In the form, there's a dynamic attribute that maps to user.customproperty7 and the value can either be "VDI" or "Laptop".



This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 29 2021 at 01:56 UTC

Hi Yusuf,


You can try something like this :


<% if (user?.customproperty7 == 'Laptop')

print "This user has selected laptop"

 else

 print "This user has selected VDI"

%>



Please refer to documentation for samples : https://saviynt.freshdesk.com/support/solutions/articles/43000622153-managing-email-templates





Regards,

Avinash Chhetri

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 29 2021 at 01:59 UTC

My provisioning steps:

  1. In the User Registration, create a new user
  2. Ensure tasks are generated in the Pending Tasks list. There will be 3 task: Create Account on AD, Create Account on Exchange and Create Account on Zoom
  3. Run the provisioning jobs sequencially: Create AD job, Create Exchange job, and then Create Zoom job. The plan is to use a Trigger Chain in the future.
  4. (Desired behavior) Because the Zoom job completed successful. if (user.customproperty7 = laptop) send email to help desk. Else if (user.customproperty7 = VDI) send email to Infrastructure Operations.

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 29 2021 at 22:19 UTC

Yusuf,


So on the Zoom endpoint, you can configure an email template on create account completion task like I've mentioned in the above section and try.




Regards,

Avinash Chhetri

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 1 2021 at 16:42 UTC

Hi Avinash,


The if else condition would need to be in the To field, not the body. Is this possible?


For example: 


<% if (user?.customproperty7 == 'Laptop')

Send email to Help Desk group

 else

Send email to VDI group

%>

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 1 2021 at 17:26 UTC

Hi Aundre, 


Yes, it is possible to use this on both TO section and the Body of the email template.



Regards,

Avinash Chhetri

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 1 2021 at 19:57 UTC

Thanks Avinash, this worked.

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.