Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

ACLs not working on the case table

vivekghildi
Tera Contributor

I'm trying to work around with ACLs on the case(sn_customerservice_case) table. However, even after creating the ACL and restricting the auto_close field to be visible only to the sn_customerservice_agent role, when I'm logging in as some other user, the auto_close field is still there.

vivekghildi_0-1762413627824.png

 

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

The issue is that your Applies to conditions are not being met.  Logically (I learned this the hard way) when using 'is not' or !=, the conditions will most always be joined with an AND, not an OR.  In your case, any record you are viewing is either not in the Closed state or not in the Cancelled state, so the ACL doesn't apply.  You can also use the 'is not one of' (or 'is one of') in this case to select both values in one statement.

Ankur Bawiskar
Tera Patron
Tera Patron

@vivekghildi 

So if you don't want agents to see that field when the State is Closed or Cancelled, then do this

Use "Allow IF"

State [IS ONE OF] Your Other States and Skip those 2

OR

If you want to use "Deny Unless" then check response from @Brad Bowman  

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader