True or false: g_user.has('x_foo_app_user') returns true for the admin role.

Prepare for the ServiceNow CAD Exam with comprehensive flashcards and multiple-choice questions. Each query offers hints and explanations. Ensure your success on the exam!

Multiple Choice

True or false: g_user.has('x_foo_app_user') returns true for the admin role.

Explanation:
g_user.has('x_foo_app_user') checks whether the current user possesses the specific role named x_foo_app_user. The admin role is a superuser role that effectively grants broad, system-wide privileges, so in typical ServiceNow behavior, an admin user is treated as having all roles for the purpose of such a check. Therefore the function would return true when the current user has the admin role, because admin covers that capability even if the role isn’t explicitly assigned. In practice, this reflects how admins bypass standard ACLs and can act with the authority of any role.

g_user.has('x_foo_app_user') checks whether the current user possesses the specific role named x_foo_app_user. The admin role is a superuser role that effectively grants broad, system-wide privileges, so in typical ServiceNow behavior, an admin user is treated as having all roles for the purpose of such a check. Therefore the function would return true when the current user has the admin role, because admin covers that capability even if the role isn’t explicitly assigned. In practice, this reflects how admins bypass standard ACLs and can act with the authority of any role.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy