How can I hide all Tasks assigned to group "A" from users who are not a member of group "A"?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 12:08 PM
Hello! We have a single Assignment Group, group "A". When any type of ticket is assigned to this group, we want only the members of group "A" to see these records. No other users should be able to see these records in a list, nor should they be able to open and view the records.
I've experimented with ACLs, a custom role, and business rules. So far nothing has worked and all of the group "A" records are returned in List queries for other users, and they can open and view them.
Any help would be great. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 12:24 PM
Hi @JR42,
Have you considered using Data Filtration - https://docs.servicenow.com/bundle/washingtondc-platform-security/page/administer/security/concept/d...
Should be pretty straightforward to set one up, but shout out if you need any assistance.
Cheers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 11:44 AM
Thanks James, I'll check this out and report back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 12:59 PM
Hi @JR42 Try below solution. This is done on Case table and it will restrict agents to see other groups cases.
- Create a Before Query Business Rule
- Check Advance check box
- Add below script in Advance Script field
var encodedquery = "assignment_groupDYNAMICd6435e965f510100a9ad2572f2b47744";
current.addEncodedQuery(encodedquery );
- In Encoded query copy below query and set it in script
Mark my answer Correct/Helpful, If I'm able to resolve your issue
Regards,
Siddharam