
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2023 03:21 AM
Have you ever been frustrated by the limited logic available in ServiceNow user criteria? You're not alone. Many developers find themselves scripting custom logic to show or hide catalog items, knowledge articles, widgets, and other elements.
But there's a simpler way: extend user criteria.
That's right, ServiceNow thought of this themselves and made it fully supported.
To extend user criteria, simply add a reference field from the user record to the user criteria table. The field must be of type List, and the names of the fields must match.
For example, to add the user's cost center as a user criterion, you would create a new field in the user criteria table called u_cost_center and set the reference field to Cost Center.
Once you've added the new field, you can use it in user criteria like any other field. For example, you could restrict certain catalog items only to members of a specific cost center.
Here's a step-by-step guide:
From the User Criteria record click the Hamburger Menu, Configure, Table
 
2. In the Table Columns related list, click New.
3. Set the type to List, and then enter the name of the new field.
4. In the Reference Specification form section, select the reference field from the user record.
 
That's it! You've now extended user criteria with a new field.
 
Now, when you're configuring user criteria, you'll see the new field in the list of available fields. You can use it to create more complex and powerful user criteria rules.
So next time you're tempted to script a custom user criteria rule, take a step back and consider extending user criteria instead. It's a simpler and more supported solution.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
Solved! Go to Solution.
- 986 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2023 12:58 AM
Not possible to create as article/blog, therefore marking this response as correct to close thread.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2023 12:58 AM
Not possible to create as article/blog, therefore marking this response as correct to close thread.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2023 01:00 AM
HI @ Peter Bodelier , Can this be applied for a field type of list in the sys_user table?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2023 01:06 AM
Hi @Tuan Vu,
No unfortunately this only works with reference fields on the user table.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.