- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 06:23 AM
Hi there,
we are trying to limit the case view based on assignment group in the cases.
for example, if customer1 user is in the group of "a", customer1 user is only able to see cases that are assigned group is set to "a".
I am guessing I can do this in ACL, but kinda lost here what I should do.
Please share any ideas.
thanks!
Elena
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 06:29 AM
Hi Elena,
Yes, you can use ACL of type: Read operation on required table with script as below.
anwer=false;
if(gs.getUser().isMemberOf(current.assignment_group))
{
answer=true;
}
OR simply add condition as below instead of above script
Assignment Group | is dynamic | one of my groups
Suggestion however, will be to use Query BR on reqiured table with script as below.
if(gs.getUser().isMemberOf(current.assignment_group))
{
current.addQuery('assignment_group',current.assignment_group);
}
Benefit of BR will be it will not show 'Security constraint error....' message as it will be for ACL.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 06:29 AM
Hi Elena,
Yes, you can use ACL of type: Read operation on required table with script as below.
anwer=false;
if(gs.getUser().isMemberOf(current.assignment_group))
{
answer=true;
}
OR simply add condition as below instead of above script
Assignment Group | is dynamic | one of my groups
Suggestion however, will be to use Query BR on reqiured table with script as below.
if(gs.getUser().isMemberOf(current.assignment_group))
{
current.addQuery('assignment_group',current.assignment_group);
}
Benefit of BR will be it will not show 'Security constraint error....' message as it will be for ACL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 01:35 PM