Create an ACL to make a record visible to only those users who belong to the assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2022 08:34 AM
I want to create an ACL which restricts a record from all those users who are not a part of the group defined in the assignment group field. Therefore, if a user is part of the current group mentioned in the assignment group field he should be able to write on the record else the record should be read-only for him.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2022 08:51 AM
Hi ads4,
Please create an ACL and use this in script
gs.getUser().isMemberOf(current.assignment_group.getDisplayValue());
Mark Correct and helpful if it helps.
***Mark Correct or Helpful if it helps.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2022 09:06 AM - edited ‎11-29-2022 09:08 AM
Hello. just to confirm, what will be the operation type of the acl?
if possible can u pls share a screenshot with results as ive been trying to do th same but not getting the output

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2022 09:10 AM
Hi @ads4 ,
This is how a sample script should look like
answer = false;
if((gs.getUser().isMemberOf('Group Name')|| gs.getUser().isMemberOf('Group Name2')))
{
answer = true;
}
BR.
Ishaan Shoor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2022 09:12 AM
Hi Ishaan!
Can u pls specify what type / operation of ACL we are using here