In which scenario ServiceNow recommends to enable report_view ACL?

Lisa71
Tera Contributor

In which scenario ServiceNow recommends to enable report_view ACL? Our servicenow is only used by internal users, no need to restrict others from viewing any aggregated data, is there need to enable report_view ACL? If we enabled it by mistake, how to deactivate? Thanks. 

1 ACCEPTED SOLUTION

Deepak Shaerma
Kilo Sage

Hi @Lisa71 

For deactivating Specific ACLs
Select all the desired report_view records.
- Click on the Actions on selected rows (checkbox-like icon) at the list header.
- Choose Update Selected from the drop-down menu.
- In the pop-up window, set the Active field to false and click Update.
or

Use a Script to Deactivate ACLs = Create a Background Script

Navigate to System Definition > Scripts - Background.

 

 

var gr = new GlideRecord('sys_security_acl');
   gr.addQuery('operation', 'report_view');
   gr.query();
   while (gr.next()) {
       gr.active = false;
       gr.update();
   }
   gs.print('Deactivated all report_view ACLs.');

 

Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning ‌‌
Thanks & Regards
Deepak Sharma 


View solution in original post

3 REPLIES 3

Deepak Shaerma
Kilo Sage

Hi @Lisa71 

ServiceNow recommends enabling the report_view ACL (Access Control List) in scenarios where there is a need to restrict access to certain reports or report data. This is often implemented in environments where reports contain sensitive or confidential information that should not be accessible to all users. Since you mentioned that your ServiceNow instance is only used by internal users and there is no need to restrict access to any aggregated data, you likely don’t need to enable the report_view ACL.

Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning ‌‌
Thanks & Regards
Deepak Sharma 

Thank you Deepak, if we already enabled it for hundreds tables by mistake, is there an easy way to deactivate them? Thanks.

Deepak Shaerma
Kilo Sage

Hi @Lisa71 

For deactivating Specific ACLs
Select all the desired report_view records.
- Click on the Actions on selected rows (checkbox-like icon) at the list header.
- Choose Update Selected from the drop-down menu.
- In the pop-up window, set the Active field to false and click Update.
or

Use a Script to Deactivate ACLs = Create a Background Script

Navigate to System Definition > Scripts - Background.

 

 

var gr = new GlideRecord('sys_security_acl');
   gr.addQuery('operation', 'report_view');
   gr.query();
   while (gr.next()) {
       gr.active = false;
       gr.update();
   }
   gs.print('Deactivated all report_view ACLs.');

 

Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning ‌‌
Thanks & Regards
Deepak Sharma