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

Prepare effectively for the ServiceNow CAD certification. Study with detailed questions and explanations. Enhance your skills and knowledge for success in your 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