Control access to pages and reports ​

Role permissions control documents, such as Sales Order or Customer. Pages and reports have their own list of roles. A page is a single screen, such as a tool or a dashboard. A report is a query report or a Report Builder report.

Prerequisites ​

  • The System Manager role.

Choose the roles for a page or a report ​

  1. Open Role Permission for Page and Report.
  2. In Set Role For, select Page or Report.
  3. Select the Page or the Report.
  4. In Allow Roles, select the roles that can open it.
  5. Select Update.

Users with none of these roles cannot open the page or the report.

To undo your change, select the page or the report and select Reset to defaults. The standard roles then apply again.

TIP

With developer mode on, a developer can also set the roles in the Page or Report document itself. ERPNext then saves the roles in the page or report files of the app.

Control export and print of report data ​

The right to export or print report data comes from the document that the report is based on. For example, the Accounts Receivable report is based on Sales Invoice.

  1. Open the report and find the document that it is based on. For a report from the Report Builder, this is the document of the report view. For a standard report, see its Ref DocType in the Report document.
  2. Open the Role Permissions Manager and select that document.
  3. For each role, select or clear Export and Print.

A report shows a permission error ​

To open a report, a user also needs at least Read on every document that the report links to. See Troubleshoot permission errors.