How does HR Criteria handle more than one condition

amyschlosser
Giga Contributor

Under HR Criteria you are able to add more than one new condition.  I have made this change, but it does not seem to be accounting for the new condition.  Do these act as "OR" or are they "AND".  We added two as they are off of different tables.

6 REPLIES 6

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

Hi Amy,

What is the use case. More specific, where are you using the HR Criteria? This will help for me to understand and provide some guidance.

Regards,

Mike

We are trying to create a criteria where the user has a certain flag that is set on the HR Profile (so it would link the HR Profile table) OR they are in a certain assignment group (which I believe we have to pull from the group member table).  We were hoping for a way to set these both on the same HR criteria that is already linked to several hundred knowledge articles rather than creating a new criteria that has to be linked to each article.

Hi Amy,

In this case it is leveraging the User Criteria that is created from the HR Criteria. Just based on the way access works in knowledge is that if the user has a role in the "Can read" or "Can Contribute" will give them access if they meet one of the roles. It is not an "AND" condition if you have multiple Criteria on the article. From a maintenance perspective this would be difficult because understanding who can see what would be very challenging.

Regards,
Mike

Yes, understood that it is using the User Criteria.  I think what I am asking is how that script on the user criteria works that is pointing to the HR Criteria.  Is it only looking at the first condition on the HR criteria?