nerdexam
ServiceNowServiceNow

CAD · Question #76

CAD Question #76: Real Exam Question with Answer & Explanation

Sign in or unlock CAD to reveal the answer and full explanation for question #76. The question stem and answer options stay visible for context.

Submitted by diego_uy· Apr 18, 2026Security and Restricting Access

Question

Which one of the following is true for this script fragment? g_user.hasRole(,x_my_app_user');

Options

  • AThe method returns true if the currently logged in user has the x_my_app_user role or the admin
  • BThe method returns false only if the currently logged in user has the x_my_app_user role
  • CThere is no g_user.hasRole() method
  • DThe method returns true only if the currently logged in user has the x_my_app_user role

Unlock CAD to see the answer

You've previewed enough free CAD questions. Unlock CAD for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Client-side scripting#g_user API#Role management#Access control
Full CAD PracticeBrowse All CAD Questions