01-05-2023 06:45 AM
Use case:
Application Role workflow with two levels of approval: User's manager then Role Owner
If role owner is submitting the request for someone, then skip BOTH levels of approvals.
Issue:
If Role owner is requesting, Saviynt skips the second level automatically but we have to use if-else block to skip the first manager approval.
I have tried many conditions to no avail, tried some conditions as-it-is from the docs but they don't work either:
entitlement.getOwnerRank1().contains(user.username) eq true -- as it is from docs, doesn't work
role.getOwnerRank1().contains(user.username) eq true -- as it is from docs, doesn't work
(entitlement.entowners == null) or (entitlement.entowners.size() == 0 ) -- as it is from docs, doesn't work
entitlement.allowner.contains(requestedBy.username) -- got from forums also doesnt work
entitlement.getOwnerRank1().contains(user.username) -- doesn't work, got this from a forum thread
Solved! Go to Solution.
01-05-2023 07:58 AM - edited 01-05-2023 07:58 AM
Can you try this, If it's still not working can you please share the error logs?
entitlement.getOwnerRank1().contains(requestedby.username)
01-05-2023 09:19 AM
Share screenshot of if else block
01-06-2023 12:32 AM
This is the workflow:
As soon as I add the first if-else condition, the request process stops working and no request ID is generated (the form tells me the request was submitted but that's a lie as per the request history):
Conditions that don't work:
entitlement.getOwnerRank1().contains(user.username) eq true
role.getOwnerRank1().contains(user.username) eq true
(entitlement.entowners == null) or (entitlement.entowners.size() == 0 )
entitlement.allowner.contains(requestedBy.username)
entitlement.getOwnerRank1().contains(user.username)
entitlement.getOwnerRank1().contains(requestedby.username)
The second block just checks if the Role's cp15 is "Yes" if so auto approves the request. The workflow is working fine if I remove the first if-else block where I want to check if a role owner is submitting the request.
01-06-2023 07:15 AM
Did you find any error in logs? Can you share the error logs?
01-06-2023 04:51 PM
What type of request are you raising ?
before block check if its account / entitlement/ role request
01-11-2023 03:08 AM
This seems to be working:
role.ownerRank1.contains(requestedby.username)