getAllUserCriteria - Deprecated

Khanna Ji
Tera Guru

getAllUserCriteria is deprecated. Does anybody has found a replacement method for this?

 

UserCriteriaLoader - API to Evaluate User Criteria

6 REPLIES 6

johnmark
ServiceNow Employee
ServiceNow Employee

UserCriteriaLoader.getAllUserCriteria() method is a deprecated method and we advice using userMatches() instead.

☞ Please refer to this article below, which explains on this in detailed.
https://www.servicenow.com/community/now-platform-blog/a-deep-dive-to-user-criteria/ba-p/2281285

johnmark
ServiceNow Employee
ServiceNow Employee

 

Below are additional Knowledge articles which discusses Semaphore Exhaustion caused by the getAllUserCriteria function being called in widgets:

 

Semaphore Exhaustion is caused due to the getAllUserCriteria function getting called in widgets

Semaphores keep getting stuck and cause slow performance due to UserCriteriaLoader.getAllUserCriteri...