PrashantLearnIT
Tera Sage

Did you know that you can extend ServiceNow user criteria by adding a custom field and then use it in your User criterias?

Here are the steps:

  1. 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.
  2. For example, to add the user's cost center as a user criterio, you would create a new field in the user criteria table called u_cost_center and set the reference field to Cost Center.
  3. Now, when you're configuring user criteria, you'll see the new field in form. You can use it to create more complex and powerful user criteria rules.

Pasted image.png

 

Pasted image (1).png

 

If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL

 

Best Regards,

Prashant Kumar (LearnIT)

 

YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant

Blog LearnIT: https://medium.com/@LearnITbyPrashant

Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/

ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635

Comments
Community Alums

Hi @PrashantLearnIT , is there a specific reason you mention "simply add a reference field from the user record"? I found this working even for a choice type of field. Is there any recommendation to not use a choice field from user table?

Community Alums

Any feedback from anyone on possibility of using a choice list field on user record to extend user criteria?

Giga Sage

@Community Alums 

Looking over the 'Extend user criteria' from ServiceNow Documentation that is the recommendation: 

 

Meet the following rules to extend the user criteria table.
The field to add must be a reference field in the user record.
The field added to the user criteria table must be List type.
The fields must have matching names. For example, cost_center [sys_user] and u_cost_center ("u" prefix is added to custom fields in a table) are considered to be matching.

 

I have not implemented this, so I don't have firsthand experience. 

 

 

 

Ref.

Extend user criteria

https://docs.servicenow.com/csh?topicname=t_ExtendUserCriteria.html&version=latest