- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 12:35 AM
Hi, I have add a list type field which reference the sys_user table.
I can add some users into the list and let the users in this list able to read/write the record.
There are some OOTB ACL which is allow the user who created the record access the record.
"current.opened_by == gs.getUserID()"
For example, for this "Who can access this record" field, Able, Abraham, Alejandra in this list, I would like let them to access this record.
How can I configure ACL by checking list type field?
Please advice.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 12:50 AM
In the ACL script you need something as below
answer=false;
if(current.u_who_can_access.indexOf(gs.getUserID())>-1)
{
answer=true;
}
//replace the field u_who_can_access with correct dictionary name of the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 12:46 AM
Hi Easley,
You can use the condition builder in the ACL to give the mentioned condition. Refer below screenshot.
Let me know in case you have any further queries
If you think my response is helpful for you? If yes, mark it as correct answer and close the loop so that it would help future readers as well.
Regards,
Deepankar Mathur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 12:58 AM
Thans, I misunderstand "is(dynamic) Me" means "==", I just worried about if the user is not in the top of the list. But this way works very well.
Helpful. Thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 01:08 AM
Hi Easley,
Yes, so this will dynamically check, if it finds that "Who has access to the record" contains your name then it would allow you the access to the record. You won't need to do any scripting in here.
Please mark reply as Correct, if applicable. Thanks!
Regards
Deepankar Mathur

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 12:50 AM
In the ACL script you need something as below
answer=false;
if(current.u_who_can_access.indexOf(gs.getUserID())>-1)
{
answer=true;
}
//replace the field u_who_can_access with correct dictionary name of the field