Skip to main content

How to restrict access to a specific report

The Advanced Reports extension for Magento 2 uses Magento ACL to control what each admin role may see and change. Access is set in System -> Permissions -> User Roles, on the Role Resources tab of a role.

What each resource allows​

Under Reports -> Advanced Reports:

  • Reports: viewing every report. Expand it to grant single reports instead - each report, custom ones included, has a resource of its own.
  • Email Notifications: the Email Notifications section.
  • Config Builder: the Config Builder tool.
  • Changing Reports: editing and saving reports in the Report builder, and creating new ones.
  • Authoring SQL Reports: writing a report as an SQL statement. Saving such a report also needs Changing Reports.
  • Sharing Reports: sharing a report through a public link.
  • Import/Export Reports Configurations: the Import/Export section.
  • Dashboards: viewing the Advanced Dashboard boards - the shared ones and the role user's own.
    • Changing Dashboards: creating boards and editing their blocks.
    • Sharing Dashboards: sharing a board.

Under Stores -> Settings -> Configuration, the Settings resource gives access to the extension's general settings.


Roles granted single reports​

A role that holds single reports - and none of Reports, Changing Reports, Authoring SQL Reports or Changing Dashboards - reads each of its reports as the report is set up:

  • The columns it can show, group by, filter and sort by are the ones the report itself uses: its columns, the groupings and filters on its toolbar, and the conditions it is saved with. The column and filter pickers offer only those.
  • A report the role is not granted cannot be opened, exported or put in an email.

A role holding Reports, Changing Reports, Authoring SQL Reports or Changing Dashboards is not limited this way: each of them can already see, or build, a report or block from any column.


Dashboards and email notifications​

  • A role without Changing Dashboards sees each board as it is saved, and chooses only the period it is read for.
  • An email notification can hold only the reports the role may see, and blocks of the boards it may see (with Dashboards). A role may still switch off or reschedule an email another admin set up with blocks it may not see, but cannot add recipients to it or change those blocks.