The CreatorCon Call for Content is officially open! Get started here.

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

JR42
Giga Guru

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!

3 REPLIES 3

James Chun
Kilo Patron

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

Thanks James, I'll check this out and report back.

Sid_Takali
Kilo Patron

Hi @JR42 Try below solution. This is done on Case table and it will restrict agents to see other groups cases.

  1. Create a Before Query Business Rule 
  2. Check Advance check box 
  3. Add below script in Advance Script field 

 

    var encodedquery = "assignment_groupDYNAMICd6435e965f510100a9ad2572f2b47744";
    current.addEncodedQuery(encodedquery );

 

  1. In Encoded query copy below query and set it in script 

SiddharamTakali_0-1712347153621.png

 

 

Mark my answer Correct/Helpful, If I'm able to resolve your issue

Regards,

Siddharam