Does we can hide record from admin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2023 11:25 PM
I have a new requirement where we want collaborator to access Employee Relation record only where he is the collaborator and not other records. For that we are assigning him sn_hr_er_admin role through script but now he is able to view/edit all the cases.
What can I do so that he can see the records of employee relation when he is collaborator and not the other records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2023 11:30 PM
You should create a new role rather than assigning the sn_hr_er_admin role. With this new role, You will have to create an ACL for that table and disable the 'Admin Overrides' checkbox.
In the Script or condition tab of that ACL, check if the current user is a collaborator on that Employee Relation record. This will ensure that collaborator sees the records they are meant to see and admin cannot see all records.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2023 02:31 AM
Hi @ritu_saluja,
Can you please try to do it by update the ACL
Help mark answer helpful and solution
Thanks
Akash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2023 03:24 AM - edited ‎02-08-2023 03:25 AM
Hi @ritu_saluja ,
You can either create read ACLs or Query Business Rule to restrict the particular records.
Please refer below docs:
Thanks,
Ratnakar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2023 03:58 AM
Hi @ritu_saluja ,
Create Read ACL's and in the ACL formation untick on Admin Override for hiding the records from Admins
in the same ACL you can apply the filter stating collaborator is me;
If you are facing difficulty in applying the filter then write script as below
var answer = false;
if(current.contributer == gs.getUser()){
answer = true;
}
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.