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

We need to use user groups in if-else block for parallel workflow

Sharma
New Contributor III
New Contributor III

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

1 REPLY 1

Kaustubh
Regular Contributor
Regular Contributor

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.

Kaustubh Pawar
Saviynt Certified IGA Professional