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

Optimizing Approval Workflow Based on Manager's Membership in the Resource Owner Group

sabyasachi1
New Contributor II
New Contributor II

Hi Team,

One use case is there. I am explaining the scenario below.

For Example:-

User: EndUser

User's Manager: EndUserManager

Application Name: ABC application

Resource Owner of ABC Application: ABC_USER_GROUP

users belongs to ABC_USER_GROUP: EndUserManager, UserOne

Typically, when a user requests an account for an application, the workflow follows a two-step approval process. First, the request is sent to the user's manager for approval. Once the manager approves, the request is then forwarded to the Resource Owner for further approval.

However, in the above scenario where the manager is also a member of the Resource Owner group for the specific application (e.g., the ABC application), the workflow should be optimized. After the manager approves the request, the system should automatically skip the Resource Owner approval step and create the pending task for that user, since the manager's approval already covers this requirement.

We have tried the below query in if else condition block with Groovy but not working:-

(com.saviynt.ecm.identitywarehouse.domain.Usergroup_users.executeQuery("select u.id from Users u,Usergroup_users ug where u.id=ug.userkey AND ug.user_groupkey='${endpoints.ownerkey}' AND u.id='${manager.id}'").size()!=0)

 

Please let us know if there is any other process to execute it.

Regards,
Sabyasachi Mohanty

1 REPLY 1

rushikeshvartak
All-Star
All-Star


(com.saviynt.ecm.identitywarehouse.domain.Usergroup_users.executeQuery("select u.id from Users u,Usergroup_users ug where u.id=ug.userkey AND ug.user_groupkey='${endpoints.requestowner}' AND u.id='${manager.id}'").size()!=0)


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.