We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to allow all end users to view Contacts that are Active or Non-Active

Su522
Kilo Sage

The BR 'user query' prevents users that are not an "admin" or "user_admin" from viewing CSM Contacts that are Non-Active.

The condition is: gs.getSession().isInteractive() && !(gs.hasRole("admin") || gs.hasRole("user_admin"))

 

How can we allow users that are not an "admin" or "user_admin" to be able to view Contacts that are Non-Active, but still disallow them to view regular Non-Active Users.

 

Specifically:

Allow all end users to view Non-active Contacts (Class = Contact)

Disallow all end users to view non-active Users (Class = Users)

 

If I update BR 'user query' > with a filter Condition on When to run:

Class is User

This allows all end users to see Contacts that are Active & Non-Active (this is wanted)

but it also allows all end users to see all Users that are Active & Non-Active (this is Not wanted)

 

Any help would be greatly appreciated.

Thank you,

Susan

 

 

0 REPLIES 0