and more in a single search tool across platforms. Read the announcement here. |
07/26/2022 12:08 AM - edited 07/26/2022 12:09 AM
Hi Team,
How to check if the requestor is one of the resource owners in the if-else block and decide on approval flow based on that? Basically looking for the binding variable to help with the comparison.
-Siva
07/26/2022 01:32 AM
You may use Custom Assignment block -> Custom Query option and specify the required query there.
07/26/2022 01:54 AM
I can't use a custom assignment block as the level of approval will be decided based on who is requesting the access.
If the resource owner requests, the request should be auto-approved, and if others request it should go to Manager and Resource Owner for approval.
07/26/2022 02:03 AM
I had a similar use-case where if a 'requestee and entitlement that he is requesting' is part of a specific usergroup, then it should be auto-approved, if not it should go thru Mgr->Ent Owner approval. I'm using the same Custom Assignment-> Custom Query option as suggested in this forum for my query. But the issue is not completely solved yet due to some Saviynt issue for which I've raised a ticket with Saviynt.
Pl refer to the below ticket that I originally raised in this forum. The query here might give you some clue. If your query is simple, may be it will work. Mine is still pending Saviynt resolution.
Workflow - If/Else condition to check if Requestby and Entitlement is part of a usergroup
07/26/2022 02:30 AM
Customquery will not work when requestor & requestee is same in short auto approval won't work.
07/26/2022 02:43 AM
SOD with requestee, requestor, and approver is not a problem here. In fact, that's the expected behavior.
The problem here is how do we check if the requestor is the resource owner in the if-else condition.
07/26/2022 02:58 AM - edited 07/26/2022 02:59 AM
(endpoint.getResourceOwner().contains(user.username)
Problem in if else you don't get error 😞
07/27/2022 07:03 AM
Hi @Sivagami
Could you let me know if we are talking about entitlement/role owners or application/endpoint owner?
07/27/2022 10:16 PM
I'm referring to the Endpoint owner.
07/28/2022 01:46 AM
Hi @Sivagami ,
another clarification, is it the endpoint owner or endpoint resource owner? Can you try the something similar like below: