Admin Overrides is not working on Filed level ACl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 07:56 AM
Hi,
I have written the filed level ACL to make it filed as editable for role "ITIL". I want to make it filed as non-editable for admin role users. I have uncheck the admin overrides checkbox, but it's not working. I have written the below script to make it false for admin users but it's not working.
Could you please let me know how to configure this? I want to make it field as non editable for "admin" users if current state is "pending".
Screenshots for your reference:
script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 08:16 AM
Hi @Rajesh Bandila,
please check below script:
(function executeRule(current, previous /* previous */) {
// Check if the current user has the admin role
var isAdmin = gs.hasRole('admin');
// Check if the current state is 'pending'
var isPending = current.u_status == 'pending';
// Determine if the field should be editable
if (isAdmin && isPending) {
current.setAbortAction(true); // Prevents the update
}
})(current, previous);
Thank you, please make helpful if you accept the solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 08:17 AM
@Rajesh Bandila Please check if you have a table.* write ACL on your table and if this table.* write ACL has Admin override checked to true. If yes, then this might be the ACL which is allowing access to your admin user.
Also, you can use Access Analyzer or ACL debugger to pin point the ACL which is granting the edit access to the admin user.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 01:20 AM
Hi @Sandeep Rajput ,
I have checked the exiting table.* write ACL and Admin Override is Unchecked(false) only.
Could you please let me know, Is there any alternative ways to achieve my requitement is this case? It would be more helpful.
Thanks,
Rajesh B

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 01:23 AM - edited 07-10-2024 01:23 AM
@Rajesh Bandila Inside your table,* write ACL, do you have the following script running?
var answer = false;
if(gs.getUser().hasRole('admin') && current.u_status == 'pending')
{
answer = false;
}