SNOW-CSA Application Rules, ACL and Notifications Practice Question
Exhibit
sys_script_include
name: validateUserAccess
script:
var user = gs.getUser();
if (!user.hasRole('admin')) {
return false;
}
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('user', user.getID());
gr.addQuery('group', 'd7e4b8c0c0a8010e00f3b4c5a6b7c8d9');
gr.query();
if (gr.next()) {
return true;
}
return false;Refer to the exhibit. A script include returns false for a user with the admin role. Which is the most likely reason?
⚠ Common exam trap
ServiceNow often tests the misconception that admin roles imply group membership, but ServiceNow treats roles and groups as separate entities, so a script checking group membership will return false for an admin not in the group.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The user is not a member of the specified group.
The script include explicitly checks group membership, likely using a method like `gs.getUser().isMemberOf('some_group')`. Even if the user has the admin role, the script returns false if the user is not a member of the specified group, as admin roles do not automatically grant group membership in ServiceNow.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The user's session is expired.
Why it's wrong here
Incorrect; the script uses gs.getUser() which is still valid.
- ✗
The user does not have the admin role.
Why it's wrong here
Incorrect; the user has admin role as stated.
- ✓
The user is not a member of the specified group.
Why this is correct
Correct; the script requires membership in that specific group.
- ✗
The GlideRecord query failed due to a missing table.
Why it's wrong here
Incorrect; sys_user_grmember exists.
Go deeper
Related to this question
About these practice questions
One of 504 original SNOW-CSA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SNOW-CSA practice question is part of Courseiva's free ServiceNow certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SNOW-CSA exam.