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

Organization Owner Approval for Modification Requests

Sanjeevini
New Contributor III
New Contributor III

Hello,

We have a workflow set up for creating and modifying organizations. The requirement is that when the organization owner submits a modification request, the approval step for the organization owner should be skipped.

Could someone help with the workflow condition to check if the requestor is the organization owner?

Thank you.

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

You can write SQL query in if -else block


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

We are trying with the below query. However, getting an error.

(com.saviynt.ecm.identitywarehouse.domain.Organization_owners.executeQuery(
"select userkey from Organization_owners ow where ow.customerkey = ${organization.id} and ow.userkey = ${requestedby?.id}")?.size() != 0)

 

org.jbpm.api.JbpmException: script evaluation error: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: com for class: Script3 at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:127) at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:115) at org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression(ScriptManager.java:87) at org.jbpm.pvm.internal.el.ScriptExpression.evaluateInScope(ScriptExpression.java:48) at org.jbpm.pvm.internal.el.Expression.evaluate(Expression.java:108)

 

 

com.saviynt.ecm.identitywarehouse.domain.Entitlement_values.executeQuery(" select userkey from Organization_owners ow where ow.customerkey = ${organization.id} and ow.userkey = ${requestedby?.id}")?.size() != 0)


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