Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/18/2023 02:22 AM
Hello, if the users manager is terminated then we want to assign that terminated managers manager to the user. so, what would be the rule condition for the same?
08/18/2023 02:50 AM
Hi @The_explorer ,
1. Create update rule with condition (##a.statuskey isupdated## and a.statuskey=0) with action Create Update User Task.
2. Add below JSON in UPDATEUSERJSON
{"updateUserQry":["UPDATE USERS U, USERS M SET U.manager = M.manager WHERE U.MANAGER=M.USERKEY AND U.MANAGER=${user.id}"]}
3. Once manager is terminated, Update User Task will be created after WSRETRY above query will be executed and manager's manager will set as a manager to user.
Let me know if it helps.
08/18/2023 11:24 AM - edited 08/18/2023 11:25 AM
1. Create update rule with termination condition for example like below
Then add below action Transfer Ownership with Replace user in Manager
with this condition by default it will replace the manager to Owner on Terminate(If you don't have owner on terminate then it will assign it to manager's manager).
08/19/2023 04:00 PM
08/20/2023 10:02 PM
Hello,
I am Working on Email template on same use case where I need to Notify users manager that have terminated and need to add managers manager in cc
The hierarchy is User manager is terminated so IRL that user is terminated so his manager should get notification and also manager manger also need to get notify
How Can I create this email template
08/20/2023 10:05 PM
You can use user update rule.
08/20/2023 10:14 PM
Thank you for your help
I need to create email template for that can you help me with creating email. Like what should I need to add in body like how can I mention managers manager in To/cc/body
08/20/2023 10:24 PM
Try below script in email body to find variables exposed.
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
08/20/2023 10:17 PM
The above use case can be implemented in 3 ways:
1. User update rule: use transfer ownership feature.
2. Preprocessing: use this to detect the user terminations and assign the new manager.
3. In connector populate update user json which can be triggered via rule again.