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

No tasks, requests and emails are being generated when requesting enterprise roles/roles

Iabdelmoneim
New Contributor
New Contributor
Dear Team,
 
We have created basic workflow for enterprise role Enterprise role owners approval or Enterprise role owners approval 2 and assigned the templates to be used within the workflow as well in the global configuration but still we are not able to see any tasks or requests created while requesting these enterprise roles. we did test and when sumbitting the request I could see these request ID(s)but it is just vanishes and it doesn't appear in pending or historical ones. so please if you can advise.
 
You can check the ticket #INC-2029079
Thank you!
 
23 REPLIES 23

rushikeshvartak
All-Star
All-Star
  • Share workflow
  • does enterprise role management job is scheduled 

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

Iabdelmoneim
New Contributor
New Contributor

Hi,

Workflow: here it is this how it was advised by Saviynt eng. that we should use resource owner. I have removed email. templates since it includes client name.

Screenshot 2024-05-28 at 07.45.54.png

 

Jobs created.

Enterprise_role_tasks_creationUtilityCreate Tasks for Future Ent Role Requests (EnterpriseRoleManagementJob)28-May-2024 00:00:00Success29-May-2024 00:00:00At 12:00 AM (Europe/Copenhagen)
 
 
Enterprise_role_future_tasks
UtilityCreate Tasks for Future Ent Role Requests (EnterpriseRoleManagementJob28-May-2024 07:40:00Success28-May-2024 07:45:00Every 5 minutes 
 

mahafujkhan1
New Contributor III
New Contributor III

Have to set up the workflow in the Global Config?

The Roles Add Workflow  should be configured in the Global Config.

 

Replace the Resource Owner Approval  block with Manager Approval  block in the workflow and check if the request is being sent to the manager or not.

 

Iabdelmoneim
New Contributor
New Contributor

Hi,

Yes, I have assigned it in the global config.

 

  1. Attach workflow in global config rushikeshvartak_0-1716876218622.png

     

  2. Workflow sample
  3. rushikeshvartak_1-1716876247447.png

     


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

Iabdelmoneim
New Contributor
New Contributor

Hi Rushikesh,

Thank you very much, now it works and request is being generated but no emails to be sent, although the job runs, Is there any specific config for this job?

 

Thank you!

Ibrahim

Run email history job

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" + ">"}}

👍Please click the 'Accept As Solution' button on the reply (or replies) that best answered your original question.


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

@rushikeshvartak  @Iabdelmoneim  For this we dont have any varibles need to create IDEA

https://forums.saviynt.com/t5/identity-governance/need-binding-variables-for-add-remove-roles-in-ema...

 


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

Iabdelmoneim
New Contributor
New Contributor

Dear,

Now we are getting the following error so we are not receiving any emails, although email service works fine.

 

-Exception in emailerService.sendNotificationEmailRoleManagement method
 
2024-05-28T11:13:56+02:00-ecm--null-tzsrf--groovy.lang.MissingPropertyException: No such property: assignee for class: SimpleTemplateScript42 at SimpleTemplateScript42.run(SimpleTemplateScript42.groovy:1) at com.saviynt.ecm.services.EmailerService.sendNotificationEmailRoleManagement(EmailerService.groovy:736) at com.saviynt.ecm.services.RoleversionService$_requestSentForApprovalEmail_closure117_closure351.doCall(RoleversionService.groovy:6560) at com.saviynt.ecm.services.RoleversionService$_requestSentForApprovalEmail_closure117.doCall(RoleversionService.groovy:6555) at com.saviynt.ecm.services.RoleversionService.requestSentForApprovalEmail(RoleversionService.groovy:6549) at com.saviynt.ecm.services.RoleversionService.roleRequestFinalStep(RoleversionService.groovy:6412) at com.saviynt.ecm.identitywarehouse.controllers.RolesController$_closure149.doCall(RolesController.groovy:7473) at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53) at com.saviynt.webservice.SaviyntRestAuthenticationFilter.doFilter(SaviyntRestAuthenticationFilter.groovy:158) at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62) at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.java:59) at com.mrhaki.grails.plugin.xframeoptions.web.XFrameOptionsFilter.doFilterInternal(XFrameOptionsFilter.java:69) at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82) at java.lang.Thread.run(Thread.java:750)
 
Please advise
 

Please share email template , assignee variable is not exposed in template

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.

Iabdelmoneim
New Contributor
New Contributor

Hi Rushikesh,

Still email is not being sent.

 

2024-05-29T08:35:01+02:00-ecm-worker--null-z9dpp--groovy.lang.MissingPropertyException: No such property: endpoint for class: SimpleTemplateScript1667 at SimpleTemplateScript1667.run(SimpleTemplateScript1667.groovy:1) at com.saviynt.mail.EmailHistoryService$_execute_closure19.doCall(EmailHistoryService.groovy:2578) at com.saviynt.mail.EmailHistoryService.execute(EmailHistoryService.groovy:1254) at EmailHistoryJob.execute(EmailHistoryJob.groovy:35) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
 
2024-05-29T08:35:00+02:00-ecm-worker-mail.EmailHistoryService-quartzScheduler_Worker-10-z9dpp-ERROR-Error - No such property: endpoint for class: SimpleTemplateScript1667 While evaluating bodyofemail for ID - 49
 
2024-05-29T08:35:00+02:00-ecm-worker-mail.EmailHistoryService-quartzScheduler_Worker-10-z9dpp-DEBUG-Saving email history...
 
2024-05-29T08:35:00+02:00-ecm-worker-mail.EmailHistoryService-quartzScheduler_Worker-10-z9dpp-DEBUG-Adding emailFailureLogs to emailhistory logs : <br>Error - No such property: endpoint for class: SimpleTemplateScript1667While evaluating bodyofemail for ID - 49
 
2024-05-29T08:35:00+02:00-ecm-worker-mail.EmailHistoryService-quartzScheduler_Worker-10-z9dpp-DEBUG-Saving email history done...
 
2024-05-29T08:35:00+02:00-ecm-worker-mail.EmailHistoryService-quartzScheduler_Worker-10-z9dpp-DEBUG-Final batch emailHistorySaveSet > 0. Save all records
 
2024-05-29T08:35:00+02:00-ecm-worker-mail.EmailHistoryService-quartzScheduler_Worker-10-z9dpp-DEBUG-Final batch emailHistorySaveSet > 0. Save all records completed
 
2024-05-29T08:35:00+02:00-ecm-worker-mail.EmailHistoryService-quartzScheduler_Worker-10-z9dpp-DEBUG-Total emails to be sent=1
 
2024-05-29T08:35:00+02:00-ecm-worker-mail.EmailHistoryService-quartzScheduler_Worker-10-z9dpp-DEBUG-THREAD_COUNT_EMAIL_HISTORY_JOB=15
 
2024-05-29T08:35:00+02:00-ecm-worker-mail.EmailHistoryService-quartzScheduler_Worker-10-z9dpp-DEBUG-before sending email [@domain-dev.com]
 
2024-05-29T08:35:00+02:00-ecm-worker-mail.EmailHistoryService-pool-626-thread-1-z9dpp-DEBUG-calling sendEmail in new thread--
 
groovy.lang.MissingPropertyException: No such property: assignee for class: SimpleTemplateScript95 at SimpleTemplateScript95.run(SimpleTemplateScript95.groovy:1) at com.saviynt.ecm.services.EmailerService.sendNotificationEmailRoleManagement(EmailerService.groovy:736) at com.saviynt.ecm.services.RoleversionService$_requestSentForApprovalEmail_closure117_closure351.doCall(RoleversionService.groovy:6560) at com.saviynt.ecm.services.RoleversionService$_requestSentForApprovalEmail_closure117.doCall(RoleversionService.groovy:6555) at com.saviynt.ecm.services.RoleversionService.requestSentForApprovalEmail(RoleversionService.groovy:6549) at com.saviynt.ecm.services.RoleversionService.roleRequestFinalStep(RoleversionService.groovy:6412) at com.saviynt.ecm.identitywarehouse.controllers.RolesController$_closure149.doCall(RolesController.groovy:7473) at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53) at com.saviynt.webservice.SaviyntRestAuthenticationFilter.doFilter(SaviyntRestAuthenticationFilter.groovy:158) at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62) at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.java:59) at com.mrhaki.grails.plugin.xframeoptions.web.XFrameOptionsFilter.doFilterInternal(XFrameOptionsFilter.java:69) at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82) at java.lang.Thread.run(Thread.java:750)
 
Please advise.
 
Thank you!
 
 

Remove all code from body and add below code and in to hardcode your email

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.

Iabdelmoneim
New Contributor
New Contributor

Hi,

I tried and still , please can you give me sample of that email template or body.

Hi ${users?.firstname} ${users?.lastname},

Request was created with below details.

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


Request: ${requestid}Role Name: ${rolename}User: ${user.username}Entitlements: ${entitlementshtmltablerows}Comment: ${request.comments}


 

 

Just keep ${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}} in email body 

rushikeshvartak_0-1717050375762.png

 


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

Iabdelmoneim
New Contributor
New Contributor

Hi Rushikesh,

I am wondering why we are getting this error when we change something in the workflow then save it 

Cannot save the workflow. There is an existing workflow with this name.
 
?
 
please advise.
 
Thank you!
Ibra

Workflow ? Till now we were talking about email template. Can you confirm what's current issue ?


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

Iabdelmoneim
New Contributor
New Contributor

Hi Rushikesh,

If I include just ${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}} so the email is not well structured so how can we generate the email and at the sametime have it well structured.

Thank you!

Ibra

First we need to find variable exposed then we can do well form email templates 


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

Iabdelmoneim
New Contributor
New Contributor

Hi Rushikesh,

Please check the ticket #INC-2029079. I attached info there.

Thank you!

Ibra

I can’t access any saviynt tickets as i am forum contributor 


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

Iabdelmoneim
New Contributor
New Contributor

Hi Rushikesh,

So we get random values for the role and the account in the email and is not well structured, we just need an email notifying the user about request creation and one for manager to approve but not including all that info.

 

Thank you!

Suggested code provide possible variable based on variable prepare your email template


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