Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

User Criteria for admins

Poorva Bhawsar2
Tera Contributor

Hi Community,

 

I have two user criterias:

1. I want to show my catalog item to a specific group. (Its working fine) I have added this group in available for.

2. I want to hide my catalog item from admins. Its not working, i have added admins group in not available for. But its not hiding my catalog item from admins. I am aware about this System Property "glide.sc.entitlement.override" which allows Admins to see all the Catalog Items.

 

Is there any option for me, where i can hide my catalog item from the admins?

 

Thanks,

Poorva Bhawsar

5 REPLIES 5

I tried same what you told.

answer = gs.hasRole('admin');

 

Also i tried, 

if(user.hasRole('admin'){

condition = false;

}