How to restrict records to users based on roles and state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 11:20 PM
Hi,
I need to restrict draft state records to users, when the logged in user is not the requestor.
how to achieve this using acls. please let me know
Thanks in advance,
Kalyani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 11:34 PM
Hello @kalyani23 ,
you have to change it on existing read acl if that read acl allowing access to users if there is no such ootb acl then create new one
If it helps, Kindy click on like icon and mark it as accepted solution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 11:35 PM - edited 02-06-2024 11:36 PM
Hi @kalyani23 you need update read acl at table level, below is the example
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 11:42 PM
Hello @kalyani23 ,
Apart from Acl's you can achieve this by creating before query business rule on the table with condition as state is draft and with below script.
current.addQuery('field name of requestor',gs.getUserID())
If it helps kindly click on like icon and mark it as accepted solution.
Cons of ACLS: it will give count of restricted records to other requestors with below message on table
Number of rows restricted by security constraints
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 12:25 AM
Hi ,
I have tried using before br query . it is not restricting draft records to users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 01:32 AM