- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2023 04:13 PM
I have a table X that stores document types which has group table as one of the reference.
I want to define an ACL stating, user can only read records from table X if he is a member of the group.
Ex: If there are 10 groups, and logged in user is a member of 4 groups, then he should only see document types belonging to 4 groups.
Can someone help me guide how to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2023 05:25 PM - edited ‎02-25-2023 05:26 PM
@Shilpa Mannoni1 you can try below script with selecting just table name and keep field as none while creating acl on x table,
answer=gs.getUser().isMemberOf(current.group_field_name.getDisplayValue());
Hope this will help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2023 05:25 PM - edited ‎02-25-2023 05:26 PM
@Shilpa Mannoni1 you can try below script with selecting just table name and keep field as none while creating acl on x table,
answer=gs.getUser().isMemberOf(current.group_field_name.getDisplayValue());
Hope this will help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2023 08:46 PM
Thanks for your help Abhay.