Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/09/2024 06:07 AM - edited 08/09/2024 06:09 AM
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
Solved! Go to Solution.
08/09/2024 06:09 AM
(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)