Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

ROLE_ADMIN user should get auto approved on request access

SriRanga
Regular Contributor
Regular Contributor
Spoiler
 

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. 

2 REPLIES 2

Darshanjain
Saviynt Employee
Saviynt Employee

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

SriRanga
Regular Contributor
Regular Contributor

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