Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/28/2024 07:38 AM
Hello experts,
We had a requirement where when user requests the access it should go to User's manager for approval, If incase Manager is out of office on an emergency leave or some leave then that approval should go to manager's manager
How can we achieve this
08/28/2024 07:40 AM - edited 08/28/2024 07:41 AM
You can achieve using custom query
Sample
SELECT u3.userkey
FROM users AS u1
JOIN users AS u2 ON u1.manager = u2.userkey
JOIN users AS u3 ON u2.manager = u3.userkey
WHERE u1.username = '${users.username}'
08/28/2024 07:48 AM
Hi @sk ,
Generally, this use case is achieved by setting up delegation. Problem is that only user knows that he is going OOO, so he can setup delegate.
His approvals will then go to someone who he delegated to.
If you want to handle this in workflows w/o setting up delegates, then you would need to reconcile leave status info to Saviynt. And, can use a if else block to check if approver leave status is set , send to manager or a custom query in custom assignment block can be used.
08/28/2024 08:03 AM
@sk
This can't be directly handled in workflow.
As Amit_Malik , you have to populate the leave status value in any user attribute and use it in the custom block of workflow.
manager.cp !=1 -> goes to regular manager
else you will create one more custom block and put the Query rushikeshvartak sent.
1 mean on leave
0 means not on leave