Catalog_admin

tbharathi15
Tera Contributor

Which method call returns true only if the currently logged in user has the catalog_admin role and in no other case?

1.g_user.hasRole('catalog_admin')

2. g_user.hasRoleExactly('catalog_admin')

3.g_user.hasRoleOnly('catalog_admin')

4.g_user.hasRoleFromList('catalog_admin')

1 ACCEPTED SOLUTION

GlideFather
Tera Patron

2. g_user.hasRoleExactly('catalog_admin')

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


View solution in original post

2 REPLIES 2

GlideFather
Tera Patron

2. g_user.hasRoleExactly('catalog_admin')

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @tbharathi15 

 

g_user.hasRoleExactly('catalog_admin')

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************