Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/01/2024 04:22 AM
Hi Team,
We are looking for a way to put user group in a if-else block of a workflow. When a user that is present in that user group, requests access, it should auto reject.
Is it possible in Saviynt as of now. If yes, can you provide a sample query that can be used here.
Thanks
10/01/2024 05:42 AM
In if-else block please try:
(com.saviynt.ecm.identitywarehouse.domain.usergroup_users.executeQuery("select ug.USERKEY from usergroup_users ug where ug.USER_GROUPKEY = <group key> AND (ug.USERKEY= '${requestedby?.id}' OR ug.USERKEY='${user.id}')")?.size() != 0)
change <group key> with actual group.
I have not tried above query, but I have worked on similar use case.