If a user has the catalog_admin role plus other roles, what does hasRoleExactly('catalog_admin') return?

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

If a user has the catalog_admin role plus other roles, what does hasRoleExactly('catalog_admin') return?

Explanation:
hasRoleExactly checks whether a user has exactly the specified role and no other roles. In ServiceNow, roles are additive, so a user can hold multiple roles. If the user has catalog_admin plus additional roles, the check is not satisfied because the user isn’t limited to that single role. Therefore, hasRoleExactly('catalog_admin') returns false in this scenario. Only if catalog_admin were the sole role would it return true.

hasRoleExactly checks whether a user has exactly the specified role and no other roles. In ServiceNow, roles are additive, so a user can hold multiple roles. If the user has catalog_admin plus additional roles, the check is not satisfied because the user isn’t limited to that single role. Therefore, hasRoleExactly('catalog_admin') returns false in this scenario. Only if catalog_admin were the sole role would it return true.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy