Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Restrict SCTask should visable only the certain group !!

Barathk
Tera Contributor

Hi All,
I have created the ACL to restrict SCTask should visable only the certain group, but it is not working.
we are creating SCTASK to the 3 different groups, these SCTASK should visible to only that 3 group , other groups need to restric to view.
can anyone please help to achieve this.
I am sharing the ACL to this post.

2 REPLIES 2

Murthy Ch
Giga Sage

Hello @Barathk 

Can you try below script:

var answer = gs.getUser().isMemberOf("a","b","c"); //replace with group sys_id's
Thanks,
Murthy

James Chun
Kilo Patron

Hi @Barathk,

 

I would recommend using the Data Filtration instead of ACL - https://docs.servicenow.com/bundle/washingtondc-platform-security/page/administer/security/concept/d...

 

Should be straight forward to set it up and won't require any coding.

 

Cheers