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

User Update Rule: Notify As An Email

mgandr
New Contributor III
New Contributor III

Hello,

I have created an Advanced HTML email template and applied it to the User Update Rule. However, when I tried to trigger the rule by updating one of the custom properties of the user, it didn't send an email.

When I test the template by only adding ${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}} on the body of the email, it provided the following output:

entitlement_endpoint_list = []
manager = admin
service_accounts_list = []
ownerOnTerminate = admin
serviceaccount_endpoints_list = []
baseUrlForEmail = https://release-n-plus-one.saviyntcloud.com/ECM
user = P000111
requestor = P000111
entitlement_value_list = []
out = java.io.PrintWriter@56d19375
[entitlement_endpoint_list:[], manager:admin, service_accounts_list:[], ownerOnTerminate:admin, serviceaccount_endpoints_list:[], baseUrlForEmail:https://release-n-plus-one.saviyntcloud.com/ECM, user:P000111, requestor:P000111, entitlement_value_list:[], out:java.io.PrintWriter@56d19375]

Attached is the body of an email I'd like to receive.

11 REPLIES 11

rushikeshvartak
All-Star
All-Star

Below variables are not exposed.

${manager?.displayname},

${task?.accountName}


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

I tried to remove all the binding variables but still not sending an email.

what if you keep simple text hi hello


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

I put Hello but still didn't trigger an email which is a bit strange. When I input the test word it did send an email.

Share email template screenshot & logs


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

mgandr
New Contributor III
New Contributor III

See the below information and attached is the desired email template.

mgandr_1-1689304589122.pngmgandr_2-1689304737796.png

2023-07-14T11:15:02+08:00-ecm-worker-{"log":"2023-07-14 03:15:02,063 [pool-20829-thread-8] ERROR mail.EmailHistoryService - Error while sending email Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535 Authentication Credentials Invalid\n","stream":"stdout","time":"2023-07-14T03:15:02.064035865Z"}
 
2023-07-14T11:15:02+08:00-ecm-worker-{"log":"2023-07-14 03:15:02,063 [pool-20829-thread-8] ERROR mail.EmailHistoryService - mail.smtp.ssl.trust: email-smtp.ap-southeast-2.amazonaws.com\n","stream":"stdout","time":"2023-07-14T03:15:02.064145188Z"}
 
2023-07-14T11:15:02+08:00-ecm-worker-{"log":"2023-07-14 03:15:02,064 [pool-20829-thread-8] ERROR mail.EmailHistoryService - smtpservername: email-smtp.ap-southeast-2.amazonaws.com\n","stream":"stdout","time":"2023-07-14T03:15:02.064157948Z"}
 
2023-07-14T11:15:02+08:00-ecm-worker-{"log":"\u0009at com.saviynt.mail.EmailHistoryService.sendEmail(EmailHistoryService.groovy:2703)\n","stream":"stdout","time":"2023-07-14T03:15:02.064347898Z"}
 
2023-07-14T11:11:55+08:00-ecm-worker-{"log":"2023-07-14 03:11:55,045 [quartzScheduler_Worker-6] DEBUG changeaction.UserChangeActionService - action to be taken::[4###GTest###94]\n","stream":"stdout","time":"2023-07-14T03:11:55.046110492Z"}
 
2023-07-14T11:11:55+08:00-ecm-worker-{"log":"2023-07-14 03:11:55,049 [quartzScheduler_Worker-6] DEBUG changeaction.UserChangeActionService - newbatchMap [4###GTest###94:[P000111]]\n","stream":"stdout","time":"2023-07-14T03:11:55.04932103Z"}
 
2023-07-14T11:11:55+08:00-ecm-worker-{"log":"2023-07-14 03:11:55,101 [quartzScheduler_Worker-6] DEBUG changeaction.UserChangeActionService - Sending email for user = P000111 using template GTest\n","stream":"stdout","time":"2023-07-14T03:11:55.101629799Z"}

I dont feel this is error. Try to attach email on report and test


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

This is an issue with your SMTP configuration.

Error while sending email Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535 Authentication Credentials Invalid\n","strea

Can you first try to send a test email from your email server setting?  Once this works , you can check from User update rule.

dgandhi_0-1689344256134.png

 

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

Looks like issue with your STMP settings, I see authentication failure in logs. Please check your SMTP settings


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

Hi @mgandr ,

This seems to be SMTP server authentications issue.

1. Go to Admin -> Settings -> SMTP Configuration.

2. Provide the SMTP configuration like SMTP Server Name, Port, Username, Password etc.

3. Click on Save and Test Connection.

4. Provide your owner email id in pop up and click Test Now.

If you are getting Test email, then try the above use case again and check whether you are getting email through update rule or not.


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

mgandr
New Contributor III
New Contributor III

It's now sending an email. I just modified the HTML.