- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 04:47 AM
I tried using Read ACL with 'Assignment Group' - is (Dynamic) - One of my groups, but I am able to view all the records of the incident table.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 06:27 AM
HI,
Remove condition and click on advance and under script write the below code.
answer=false;
if(gs.getUser().isMemberOf(current.assignment_group) && current.assignment_group!='')
{
answer=true;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 05:00 AM
Hi
You can apply before query business rule for it.
You can also achieve it with ACL where you can check the logged in user group and the record's assignment group.
Or, simply Write a read ACL on Incident table and put the condition in the advance script
if(gs.getUser().isMemberOf(current.assignment_group))
answer=true;
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 06:05 AM
This should work so I assume there is a conflicting rule. Try turning on debugging ACLs and see if there are ACLs allowing read at the record level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 06:27 AM
HI,
Remove condition and click on advance and under script write the below code.
answer=false;
if(gs.getUser().isMemberOf(current.assignment_group) && current.assignment_group!='')
{
answer=true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2022 01:06 AM