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

Master the ServiceNow CAD exam with our study tools. Use Flashcards and multiple choice questions, complete with hints and explanations to ace 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