How to restrict the RITM read access based on the catalog, for example human capital catalog items

surya40
Tera Contributor

Dear community,

 

How to restrict the RITM read access based on the catalog, for example human capital catalog items shows only particular groups name starts with HC like.

1 REPLY 1

Sumanth16
Kilo Patron

Hi, 

 

Please refer to below thread:

https://www.servicenow.com/community/developer-forum/how-restrict-particular-ritm-records-using-acl/...

 

(or)

You can try Business Rule with QUERY action: 

So that we can add your custom query condition whenever people query the table

function executeRule(current, previous /*null when async*/) {

if(gs.getUserID().hasRole('admin')!=true && gs.getUserID().hasRole('epic1')!=true) {

current.addQuery('cat_item.name','!=','Apple iPad 3');
}

})(current, previous);

 

Please mark it as helpful (or) correct if it resolves your issue.

 

Thanks & Regards,

Sumanth Meda