Valid CAD Dumps shared by ExamDiscuss.com for Helping Passing CAD Exam! ExamDiscuss.com now offer the newest CAD exam dumps, the ExamDiscuss.com CAD exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CAD dumps with Test Engine here:
Which method call returns true only if the currently logged in user has the catalog_admin role and in no other case?
Correct Answer: B
The method call that returns true only if the currently logged in user has the catalog_admin role and in no other case is g_user.hasRoleExactly('catalog_admin'). This method checks if the user has exactly one role, and returns true if it matches the argument. The other methods return true if the user has one or more roles, or if the user has any role from a list of arguments. References: [ServiceNow Docs - GlideUser API], [ServiceNow Community - Difference between hasRole() and hasRoleExactly()]