Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Create an ACL to make a record visible to only those users who belong to the assignment group

ads4
Kilo Guru

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.

 

6 REPLIES 6

Yousaf
Giga Sage

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

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

Ishaan Shoor
Mega Sage
Mega Sage

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;
}
Hope this helps!
BR.
Ishaan Shoor

Hi Ishaan! 

Can u pls specify what type / operation of ACL we are using here