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

WF query

Dalalsaleh888
New Contributor
New Contributor

we are trying to use the below query in the workflow to redirect the access to another group "custom assignment" when value of false. howver it is not progressing. is the quey correct?

 

 

com.saviynt.ecm.identitywarehouse.domain.roles.executeQuery("Select u.statuskey as roStatus from Users u, Role_owners ro, roles r where u.userkey = ro.userkey AND ro.rolekey = r.rolekey AND r.rolekey = '${role.rolekey}' AND ro.rank = 1 AND u.statuskey = 1"

).size() > 0

2 REPLIES 2

NM
Esteemed Contributor
Esteemed Contributor

@Dalalsaleh888 try this

com.saviynt.ecm.identitywarehouse.domain.Roles.executeQuery("Select u.statuskey from Users u, Role_owners ro, roles r where u.userkey = ro.userkey AND ro.rolekey = r.rolekey AND r.rolekey = '${role.id}' AND ro.rank = 1 AND u.statuskey = 1"

 

).size() > 0


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

rushikeshvartak
All-Star
All-Star
com.saviynt.ecm.identitywarehouse.domain.roles.executeQuery("select u.statuskey from Users u, Role_owners ro, Roles r where u.id = ro.userkey AND ro.rolekey = r.id AND r.rolekey = '${role.id}' AND ro.rank = 1 AND u.statuskey = 1").size() > 0

Please share logs and also confirm where is this workflow attached ?


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