We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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')


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---

View solution in original post

2 REPLIES 2

glideFather
Tera Patron

2. g_user.hasRoleExactly('catalog_admin')


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---

Dr Atul G- LNG
Tera Patron

Hi @tbharathi15 

 

g_user.hasRoleExactly('catalog_admin')

 

*************************************************************************************************************
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

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