- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 10:06 PM
Hi community
I want to limit visibility to Sctasks and ritm records where the item = a specific item
I tried acls on there own but the oob acls are stopping it from working. What is best approach here. Example would be appreciated
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2025 07:20 PM
Hi @AnthonyMull
PFB the sample for "Deny unless" ACL.
Ex:
1. Catalog item: Limit visibility to sctasks
2. Custom role: restrict_task_view
3. Two test users: Test 1 -> Without custom role; Test 2 -> With custom role
4. Creating Deny Unless ACL of type read on "sc_req_item" table
5. Output results:
-> User TEST 1:
-> User TEST 2:
I hope this helps.
Please mark this as a solution if it resolves your query.
Thanks,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 10:32 PM
Hello @AnthonyMull
Did you try before query business rule for this?
Please mark the answer as helpful and correct if helped.
Kind Regards,
Ravi Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 10:37 PM
Hi, @Ravi Chandra_K
No I did not I was hoping acl would meet my requirement. Can you provide maybe some guidance on how to use business rule for this please
Kind regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 10:50 PM
Hello @AnthonyMull
Please Used Scripting In ACL For specific Item
var ritm = new GlideRecord('sc_req_item');
ritm.get(current.request_item); // Get the related RITM record
if (ritm.item.name == 'Mouse') {
return true; // Allow access
}
return false;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 12:41 PM