Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

How to sent request for approval if requestor(as Admin or RoleOwner) is requesting self access

SriRanga
Regular Contributor
Regular Contributor

Hi Team,

We have configured approval WF and the condition is as below-

-If Requestor is with ROLE_ADMIN role or is an owner of that Role then request will get auto approved. We are using below condition for this-

For Admin User-"requestedby.authorities.collect {it.authority}.contains("ROLE_UIADMIN")"

For Role Owner-"(entitlement.getOwnerRank1().contains(requestedby.username) eq true)"

But we need to achieve below as well in addition to above-

>If requestor is with 'ROLE_ADMIN' role or requestor is an owner of that role and is requesting self access then request should not auto approved(should go to access approval)

 

Can you please help with the condition we can use in WF.

Thanks,

Amit Aware

1 REPLY 1

naveenss
All-Star
All-Star

Use the below condition to check if the request is made for self. Let me know if this helps.

requestedby.username == user.username

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.