The Zurich release has arrived! Interested in new features and functionalities? Click here for more

ACLs are ignored in Widgets

verdakosnett
Tera Expert

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?

3 REPLIES 3

Community Alums
Not applicable

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


Thanks Andrew Cadaret !! Worked like a charm!!


Community Alums
Not applicable

Glad to be of assistance!