Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Auto approve request if it goes to same person a second time

yogesh
Regular Contributor III
Regular Contributor III

I have two level workflow for Enterprise role request:
1. Manager Approval
2. Role Owner Approval

I want the request to require only one level of approval and auto approve at second level if end user's manager is also a role owner for the requested role.

How can this be achieved?

2 REPLIES 2

shivmano
Regular Contributor III
Regular Contributor III

@yogesh , you can try adding the below check in the if-else block and autoapprove if the manager is role owner

role.getOwnerRank1().contains(user.manager) eq true

or 

role.getOwnerRank1().contains(manager.username) eq true

yogesh
Regular Contributor III
Regular Contributor III

Thanks @shivmano 
I am able to get it working by this:
role.ownerRank1.contains(manager.username)

yogesh_0-1685110268319.png

On a sidenote:
I remember seeing in earlier Saviynt versions that request got auto approved if it was sent to same approver twice, automatically without having a condition like this. Did this change recently?