User Update Rule and Technical rule attached to it is not triggering when user is updated from API calls.
The user should provision with AD account and Access as part of Birthright access
User Update Rule
((##a.startdate isupdated##) AND (a.statuskey=1) AND (DATEDIFF(a.startdate,Curdate()) < 21))
( Users.customproperty14 =51 OR Users.customproperty14 =52 OR Users.customproperty14 =53 OR Users.customproperty14 =54 OR Users.customproperty14 =1 OR Users.customproperty14 =2 OR Users.customproperty14 =3 ) AND ( Users.firstname !=null AND Users.lastname !=null AND Users.email !=null AND Users.country !=null AND Users.customproperty6 !=null) AND ( Users.customproperty15 like '%Yara ISS%' OR Users.customproperty15 like '%HRM%' ) AND ( Users.username not like '%aa%' ) AND ( Users.statuskey =1 )
Did you make sure when you create the user update rule ( you need to select from when this rule can be kicked off, u need to select when user is updated from Api )
If the above is configured, then please check if you are sending the attribute as false - checkrules ( if not sent default it is true ).
Both are configured correctly from my end.
The User Update Rule and Technical rule is triggering fine when we do the update from UI and for this change to work, I have created another user update rule with "select when user is updated from Import". The provisioning tasks are triggering fine without any issues.
Okay, Do you see anything in the logs when you update from Api,
Also send me the body of the postman you are calling to update the users as well
if still facing issues, this may need to triage the logs to check further which can you raise a FD and support team would check further.
Please find my comments below.
Ideally this to trigger the rule ( Also in user update history are you able to see the rule run when user is updated). The user start date is updating for the user but the user update rule is not triggering. It is not showing in the user update history.
Thanks and Regards,
Could you please confirm if we need to run the "CustomerRuleRunJob" to trigger the user update rules. Please confirm if this needs to be run before or after the userimport from API call.