Only members of group can view the record

Aps1
Tera Expert

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.

Aps1_1-1724427896166.png

 

Aps1_2-1724427924861.png

Thanks

 

3 REPLIES 3

Aranya
Tera Guru

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.

Sid_Takali
Kilo Patron
Kilo Patron

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.

Sandeep Rajput
Tera Patron
Tera Patron

@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.