I want to understand, how the Available for/Not available is working in the backend for catalog item

Community Alums
Not applicable

Hi All,

We all know that under Available for/Not available for we are defining the user criteria, now I wanted to understand what is there in the backend, as user criteria under  Available for/Not available for works based on the logged-in user..

Backend functionality I wanted to understand..

Thanks
Utsav

2 REPLIES 2

Community Alums
Not applicable

Hi @Utsav JAISWAL ,

In teh backend, it's more like how condition builder works which is based on conditions to be met.

In ServiceNow, user criteria are typically AND-based, meaning that all the specified conditions must be met for a user to be considered eligible. If you set up user criteria involving both a Group and a Script, both checks usually must pass for the user to meet the criteria.

 

Here's a simplified example to illustrate:

 

Let's say you have the following user criteria:

 

  1. Group Criteria: User must be a member of the "IT Support" group.
  2. Script Criteria: User must have a custom attribute "Is Manager" set to "True" in their user record.

 

If both criteria are specified, then a user must meet both conditions:

 

  • The user must be a member of the "IT Support" group.
  • The user must have the "Is Manager" attribute set to "True" in their user record.

Another example : 

In Service Now, we have User Groups which groups sets of users. But not that might not always satisfy all the usecases.

Lets say, we want to group all users working in Support organization from New York office.
We dont have an ability to group these people in Service Now using User Group.
Thats where User Criteria comes in. User Criteria allows to group user based on multiple conditions.

 

Sid_Takali
Kilo Patron
Kilo Patron

Hi @Utsav JAISWAL Have a look at User Criteria Records "user_criteria" table, you will understand.

 

Imagine you have a catalog item that should be available only to users in the "IT Support" group but not available to users in the "HR" group.

  • Available for: This would include a criteria record where the condition is set to check if the user is a member of the "IT Support" group.
  • Not Available for: This would include a criteria record where the condition is set to check if the user is a member of the "HR" group.

When a user tries to access this catalog item, the system evaluates their group memberships against these criteria. If they meet the "Available for" condition and don’t meet the "Not Available for" condition, they gain access.