Need to hide a row with ACL in list view

Community Alums
Not applicable

for the list view of sc_cat_item, I need to hide one row:
name = Apple iPad 3 AND
active = false

I created a new ACL rule for read on sc_cat_item table:
sc_cat_item:none
condition is: name = Apple iPad 3 AND active = false
Add role: security_admin (because I don't want other regular login users to view this row)

Then, I impersonated another user, and typed sc_cat_item.list in the navigation, I still can see that row. 

Please help.

5 REPLIES 5

Weird
Mega Sage

The way ACL's work is that you need just one to give access. So even if there's 49 ACL's that prevent access, you'll have full access if one gives it.

So in your case you'd also need to check other read ACL's on sc_cat_item and add a condition to not give access if the catalog item is Apple iPad 3 AND active is false while of course making sure the original conditions also apply.

Community Alums
Not applicable

Thank you for the solution. I will modify the existing ACLs to make it work. 

I found one of ACLs is protected. How can I modify it? Thanks.

 

Hi @Community Alums ,

 

If it is protected by an ACL, You can look for an ACL on that field, and set the "admin overrides" checkbox so you don't get locked out.


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

For any that have protection policy you can't modify them yourself and you'll have to ask Servicenow to modify them for you.
Who are you trying to hide the catalog item from? Do the users, who are not supposed to see it, have the "catalog_builder_editor" role? If you're just hiding it from any regular users, then you might not even need to touch that since it's a catalog builder related role.