Issue
As per the article: Create a User Criteria
"Do not use gs.getUser() or other session APIs since they cause conflict when used in diagnostic tools. Use the pre-defined user_id variable available in the script to get the user id of the user being used to evaluate the script."
So this is the sample pseudo code:
var userGR = new GlideRecord('sys_user');
userGR.get(user_id);
if(userGR.getValue('manager') == '62018157c395e5008579ba46904d62b6') {
answer = true;
}
else {
answer = false;
}
Hope this will help you to implement the desired behavior.