03/27/2023 08:09 PM
Hi Team,
We are preparing a workflow which has below condition-
1. If Entitlement/Role do not have owner associated with it then approval should pass to manager
2. If Requestor is a Role owner itself and requesting access then it should get AutoApproved
3. If Requester with ROLE_ADMIN role then it should get AutoApproved
Here condition 1 and 2 are working fine. Could you please help us with the condition we can use for condition 3
Please do let us know if you need more details.
Solved! Go to Solution.
03/27/2023 10:07 PM
Hi @SriRanga
Use the below condition in if else block( mark it as groovy ) for the 3rd condition
requestedby.authorities.collect { it.authority }.contains("ROLE_ADMIN")
Thanks
Darshan
03/28/2023 01:26 AM
Hi Darshan,
Thank you so much for your help. The expression you have given above is working properly.
As said I have used it as a groovy type in IF ELSE condition.
Thanks,
Amit Aware