ACLs are ignored in Widgets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2016 12:15 PM
I was able to design elaborate ACLs which work great on forms and lists but when a widget uses these tables to query them for different users, it displays all fields without any regard to ACLs. Did anyone figure out how to solve this problem?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2016 12:26 PM
I am not sure if functionality exists to make a listview of a table in ServicePortal only show the visible fields, as in the core product OOB. You can probably script this by using .canRead() to determine which columns to show.
Be sure to build your widgets using the GlideRecordSecure object to avoid this problem:
GlideRecordSecure - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2016 01:56 PM
Thanks Andrew Cadaret !! Worked like a charm!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2016 02:03 PM
Glad to be of assistance!