Restrict SCTask should visable only the certain group !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 10:08 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2024 04:04 PM
Hello @Barathk
Can you try below script:
var answer = gs.getUser().isMemberOf("a","b","c"); //replace with group sys_id's
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2024 01:31 AM
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