User Criteria is not working when initiated via a REST API call or Web Service
Logs or error show "Security constraints prevent ordering of Item"
com.glide.script.fencing.MethodNotAllowedException: Function log is not allowed in scope sn_sc. Use gs.debug() or gs.info() instead
The User Criteria Script maybe using a function or method that is not allowed to be called from web service
Check the script if it has gs.log and replace it with gs.debug
If there is none, check for errors by checking the 'System Log'