Hide Fields From the List View
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2018 03:53 AM
Hi All,
I want to hide three fields in the list view and it should be visible to only one group.
Example:
Fields are like Test, Test1 and Test2
Group Name - Global Service Desk
-Dharani
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2018 03:57 AM
Hi,
Create a separate list view which will only applies to the user belongs to particular assignment group and then add the required columns in that list view.
Thanks,
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2018 03:57 AM
Hi Dharani,
Steps:
1) create field level read ACL on those 3 fields
2) if that group has some role add that role in roles section
3) if that group has no role then use script section and check whether user is member of that group; if yes then return answer as true or else answer as false
But 1 drawback for point 3 is that if user is not member of that group user cannot see the value present in that field in list view but can see that column in list layout. Test this part since I had observed this earlier.
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2018 04:14 AM
Hi Ankur,
If we write a READ ACL user can still see the field on the list view.
But i have to hide the field completely if the user does not belongs to that particular group.
If i go with add_to_list ACL type it will hide it but it cannot be done for Group Members Check(Logged in user should be member of particular group).
Conditions and Scripts are not supported in this add_to_list type of ACL only role based we can do.
-Dharani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2018 03:59 AM
Add a read ACL with the admin role to the field.
Using Access Control Rules - ServiceNow Wiki
Let me know if this if it helps.