Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/17/2024 03:18 AM
We have a requirement as follows:
If entitlement owner requests for the entitlement, the request should get auto approved.
If requestor is not entitlement owner, the request should be routed to manager for approval.
I found below query on forum but it is not working for me:
role.ownerRank1.contains(requestedby.username)
Solved: Workflow: Check if App Role Owner is submitting th... - Saviynt Forums - 20679
Tried other queries too but no help
(com.saviynt.ecm.identitywarehouse.domain.Entitlement_values.executeQuery("SELECT count(*) FROM Entitlement_values ev,Entitlementowners eo WHERE ev.id=eo.id and ev.rank=1 and ev.entitlement_Value='${entitlement.entitlement_Value}' ").size()!=1)
entitlement.getOwnerRank1().
entitlement.allowner.contains(requestedby.username)
entitlement.allowner.contains(user.username)
The workflow I have created is :
While I submit the request, I get error as
Solved! Go to Solution.
04/17/2024 03:36 AM
Use below try
entitlement.getOwnerRank1().contains(requestedby.username) eq true
04/17/2024 04:25 AM
Tried but same error 'Request not Submitted. Please contact your administrator.'
04/17/2024 04:39 AM
directly enttiltment it wont get u need specify application
use like
04/17/2024 05:51 AM
I tried but same issue
04/17/2024 06:13 AM
@Kaustubh : Are you trying to validate the Application Role Owner or Entitlement Owner. If Application Role Owner then use below condition
role.ownerRank1.contains(requestedby.username)
If it is Entitlement Owner then use below condition
entitlement.getOwnerRank1().contains(requestedby.username) eq true
And make sure that you didn't select groovy as expression language
04/17/2024 07:51 PM
04/17/2024 08:11 PM
Change language to groovy
04/17/2024 06:27 AM
yes if using roles then use below condition insteadof entilemnt
role.ownerRank1.contains(requestedby.username)
and same workflow try it
04/17/2024 05:54 PM
Please share workflow zip
04/17/2024 07:53 PM
04/18/2024 12:25 AM - edited 04/18/2024 02:14 AM
When I am trying to submit a request as an entitlement owner, I am getting an error message 'Request not submitted. Contact your administrator'.
The request should be auto approved if entitlement owner is submitting a request else it should be router to manager for approval.
04/18/2024 07:39 AM
04/18/2024 09:11 AM
With this current workflow, I am able to submit the request. But in this case, I have raised a request for one user already having an account and I am entitlement owner of rank 1. I want the request should be auto approved since the entitlement owner has raised the request, but it is going to the manager for approval.
04/18/2024 11:29 AM
@Kaustubh : Change owner check condition as below
entitlement.getOwnerRank1().contains(requestedby.username) eq true or entitlement.getOwnerRank1().contains(user.username) eq true
04/18/2024 02:25 AM
@Kaustubh can remove all just give start and grant access and end
and try to submit the request or not check it ? get logs
04/18/2024 09:17 AM
I tried and the request is approved.
04/18/2024 12:01 PM
Requestor is Entitlement owner or End user is entitlement owner
04/18/2024 08:56 PM
Requestor is entitlement owner requesting on behalf of end user.
04/18/2024 09:40 PM - edited 04/18/2024 09:49 PM
When requestor: entitlement owner
beneficiary: end user
If entitlement owner selects multiple entitlements for which he is not the owner along with the one for which he is the owner, then the other entitlements request should be routed to respective entitlement owners. Currently other entitlements are routed to manager for approval.
04/18/2024 09:54 PM
You can modify workflow based on sugesstion and prepare table and test all use case
Requestor | End User | Entitlement 1 Owner | Expected behaviour | Ent 2 Owner |
Rushi | Kaustubh | Rushi | Auto Approve | N/a |
04/18/2024 10:59 PM
requestor | end user | entitlements | expected behaviour |
Rushi | Kaustubh | ent1, ent2 | ent1 auto approved. Ent 2 router for ent owner approval |
Rushi | Kaustubh | ent2 | Ent2 routed for ent2 owner approval |
Here Rushi is owner for entitlement 1
04/19/2024 06:40 AM
@Kaustubh : If requestor is owner of any entitlement in system you need that to be sent it to entitlement owner instead of manager?
If requestor is not entitlement owner then you still need it to be routed to manager instead of owner?
04/20/2024 09:21 PM
Kaustubh is owner of entitlement1, Saathvik is owner of entitlement2.
Kaustubh submits a request for user with entitlement1 and entitlement2.
Entitlement1 should be auto approved while entitlement2 should be routed to Saathvik for approval.
Can we do this?
04/21/2024 08:59 PM
Each reply your requirement are changing. Now you are ask is Entitlement owner instead of manager ?
04/22/2024 06:31 AM
@Kaustubh: Okay can you also explain below scenarios in the same example you gave.
04/22/2024 07:24 AM
For both of the scenarios mentioned by you, same flow is expected:
As Kaustubh is not the owner of any entitlements submitted in the request, the account request route to Manager and entitlement request to respective entitlement owner.
04/22/2024 11:17 AM
@Kaustubh : I don't think it is possible to achieve all your scenarios. Either you keep your manager approval as first level for all scenarios and then auto approve the request at 2nd level if requestor is owner of entitlement otherwise goes through respective entitlement owner.
OR
Request will be auto approved for entitlement where requestor is owner otherwise whatever flow you want (Either manager + entitlement owner or just manager or just entitlement owner) will be applied for all else scenarios.
04/22/2024 03:08 PM
You need to have manager as well entitlement owner in workflow