Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 01:15 PM
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.
Solved! Go to Solution.
04/12/2022 02:43 PM
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
04/12/2022 02:43 PM
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".
04/12/2022 02:43 PM
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
04/12/2022 02:43 PM
My provisioning steps:
04/12/2022 02:43 PM
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
04/12/2022 02:43 PM
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
%>
04/12/2022 02:43 PM
Hi Aundre,
Yes, it is possible to use this on both TO section and the Body of the email template.
Regards,
Avinash Chhetri
04/12/2022 02:43 PM
Thanks Avinash, this worked.