Workflow Query: If-else condition to check if Requestor is one of the Resource Owners

Sivagami
All-Star
All-Star

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

9 REPLIES 9

Asha
New Contributor III
New Contributor III

You may use Custom Assignment block -> Custom Query option and specify the required query there.  

Sivagami
All-Star
All-Star

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.

Asha
New Contributor III
New Contributor III

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

 

Customquery will not work when requestor & requestee is same in short auto approval won't work. 

Sivagami
All-Star
All-Star

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.

(endpoint.getResourceOwner().contains(user.username) 

Problem in if else you don't get error 😞

sahajranajee
Saviynt Employee
Saviynt Employee

Hi @Sivagami 

Could you let me know if we are talking about entitlement/role owners or application/endpoint owner?


Regards,
Sahaj Ranajee
Sr. Product Specialist

I'm referring to the Endpoint owner.

sahajranajee
Saviynt Employee
Saviynt Employee

Hi @Sivagami ,

another clarification, is it the endpoint owner or endpoint resource owner? Can you try the something similar like below:

sahajranajee_0-1658998007670.png

 




Regards,
Sahaj Ranajee
Sr. Product Specialist