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

User update rule with Advanced Query not triggered

kunal_saxena
Regular Contributor
Regular Contributor

Hi,

I have a requirement to trigger user update rule when the following conditions occur:

  • User status is inactivated AND
  • User customproperty18 is null or blank AND
  • User is a manager of contingent workers

To implement this, I have written the following query under User Update rule > Condition > Advanced Query:

a.statuskey = 0 AND (##a.statuskey isupdated##) AND (a.customproperty18 is null or a.customproperty18='') AND a.id in (select distinct manager from users where employeetype = 'Contingent Worker' and (leavestatus is null or leavestatus=''))

However, the rule is not getting triggered when I test for a user who satisfies the above condition.

Please advise.

Thanks,
Kunal

6 REPLIES 6

NM
Honored Contributor III
Honored Contributor III

@kunal_saxena what is the trigger condition you have set for the rule?

Is it to trigger when updated via UI or import?


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

kunal_saxena
Regular Contributor
Regular Contributor

@NM - When user updated via import

NM
Honored Contributor III
Honored Contributor III

@kunal_saxena so user is getting updated via import right?

Change the order and give it a shot 

##a.statuskey isupdated## AND a.statuskey=0 AND (a.customproperty18 is null or a.customproperty18='') AND a.id in (select distinct manager from users where employeetype = 'Contingent Worker' and (leavestatus is null or leavestatus=''))

One more point if above doesn't work

instead of emoloyeetype use employeeType


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

Raghu
All-Star
All-Star

@kunal_saxena  try with in condition

a.statuskey = 0 AND (##a.statuskey isupdated##) AND (a.customproperty18 is null or a.customproperty18='') AND a.id in (select distinct manager from users where employeeType in ('Contingent Worker') and (leavestatus is null or leavestatus=''))


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

rushikeshvartak
All-Star
All-Star

Use below query

  • Table name first letter should be capital

 

a.statuskey = 0 AND (##a.statuskey isupdated##) AND (a.customproperty18 is null or a.customproperty18='') AND a.id in (select distinct manager from Users where employeeType = 'Contingent Worker' and (leaveStatus is null or leaveStatus=''))

 

  • You can always check from UI and logs
  • rushikeshvartak_0-1729517469240.pngrushikeshvartak_1-1729517485647.png

     


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

kunal_saxena
Regular Contributor
Regular Contributor

Thanks @NM @Raghu @rushikeshvartak for your replies.

The advanced query suggested by @rushikeshvartak worked. User update rule is now triggered for the user.