Only members of group can view the record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 08:46 AM - edited 08-23-2024 09:08 AM
Hi,
I have made a read acl for restricting but it is restricting all records.
group members also not able to view the record.
only members of group can view the record
Please help.
@Ankur Bawiskar
ACL.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 10:49 AM
Hi,
Kindly follow this knowledge article and try to recreate the resolution: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0790987
P.S. Please mark as Helpful if I was able to clear your doubt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 10:56 AM
Hi @Aps1 For restricting records of specific group to their members, It is recommended to use Before Query Business rule instead of ACLs. Refer this KB Article https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0790987
And for your ACL Script condition try below syntax
gs.getUser().isMemberOf(current.assignment_group.toString())
OR
gs.getUser().isMemberOf(current.assignment_group.sys_id+'')
isMemberOf() Takes either a group sys_id or a group name as an argument.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 10:58 AM
@Aps1 I recommend you to use Access Analyser to check which part of ACL is failing. Please refer to https://docs.servicenow.com/bundle/xanadu-platform-security/page/integrate/identity/concept/explore-... to know more about Access Analyser.