
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 02:22 AM - edited 02-20-2025 02:25 AM
We require the "Desktop support" group to have access to RITMs belonging to catalog items of a specific category. We are trying to achieve this with ACL, but it hides all RITMs.
Restrict access to RITM tickets and "Tasks included"
- Users in the group
- The user who created the ticket
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 05:12 AM
@Community Alums
so if logged in user belongs to Desktop support then show RITM belonging to particular catalog item
If not then show all
Before query business rule on sc_req_item table
Condition:
gs.getUser().isMemberOf('Desktop Support') && gs.getSession().isInteractive()
Script:
(function executeRule(current, previous /*null when async*/ ) {
// Get the current user's ID
var userId = gs.getUserID();
// Restrict access to RITMs belonging to catalog items of a specific category
current.addQuery('cat_item.category', 'YOUR_CATEGORY_SYS_ID').addOrCondition('opened_by', userId); // Replace with your category sys_id
})(current, previous);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 02:09 AM
Above answer worked with below changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 07:50 AM
Hi Experts
I have similar requirement for particular catalog item to restrict the access to sc_request, sc_req_item, sc_task and it should only access when below conditions met.
1. only members of catalog task assignment group should access the sc_request, sc_req_item, sc_task
2. there are some 50 plus assignment group, they should also access sc_request, sc_req_item, sc_task
3. approvers of that catalog item should also access sc_request, sc_req_item, sc_task
4. opened by user and requested for should accesss the records sc_request, sc_req_item, sc_task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 07:48 AM
Hi Experts
I have similar requirement for particular catalog item to restrict the access to sc_request, sc_req_item, sc_task and it should only access when below conditions met.
1. only members of catalog task assignment group should access the sc_request, sc_req_item, sc_task
2. there are some 50 plus assignment group, they should also access sc_request, sc_req_item, sc_task
3. approvers of that catalog item should also access sc_request, sc_req_item, sc_task
4. opened by user and requested for should accesss the records sc_request, sc_req_item, sc_task
apart from above conditions, no one should read the records of that item.