ServiceNowServiceNow
CAD · Question #205
CAD Question #205: Real Exam Question with Answer & Explanation
Sign in or unlock CAD to reveal the answer and full explanation for question #205. The question stem and answer options stay visible for context.
Submitted by asante_acc· Apr 18, 2026Security and Restricting Access
Question
Which method call returns true only if the currently logged in user has the catalog_admin role and in no other case?
Options
- Ag_user.hasRole(`catalog_admin')
- Bg_user.hasRoleExactly(`catalog_admin')
- Cg_user.hasRoleOnly(`catalog_admin')
- Dg_user.hasRoleFromList(`catalog_admin')
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 Scripting#g_user API#Role-based Access#Access Control