Set role permissions ​

The Role Permissions Manager decides what each role can do with each kind of document: read, write, create, submit, cancel, and more. Each row is a permission rule for one role, one kind of document, and one permission level.

Prerequisites ​

See the current permissions ​

  1. Open the Role Permissions Manager.
  2. Select a Document Type, for example Sales Invoice, to see the rules of all roles for it. Or select a Role to see all documents of that role.

Each row shows the Role, the Level, and the check boxes of the permissions. Select the role name to see the users who have it.

Change a permission ​

Select or clear a check box in a row. ERPNext saves the change at once. For the meaning of each check box, see Permission types.

Add a permission rule ​

  1. Select Add A New Rule.
  2. In the Add New Permission Rule dialog, select the Document Type, the Role, and the Permission Level. Use level 0 for the document itself.
  3. Select Add. A new row appears.
  4. Select the permissions of the new row.

A role needs a rule at level 0 before it can have a rule at a higher level. See About permission levels.

Restore the standard permissions ​

To undo your changes for one kind of document, select it and select Restore Original Permissions. ERPNext resets the rules of that document to the standard rules.

Example: leave applications ​

INFO

Leave Application is in the Frappe HR app. The example shows how the permission layers work together.

NeedSetup
Employees create their own leave applications.The Employee role has Read, Write, and Create at level 0.
Employees see only their own applications.Each user has a user permission on their own Employee record.
Employees can select another document but not open it.Give the role only Select on that document.
HR managers see all applications.HR Manager has Read at level 0, and HR managers have no user permission on Employee.
Leave approvers see their team's applications.Leave Approver has Read and Write at level 0, and a user permission for each employee in the team.
Only HR and approvers change the status.The Status field is at level 1. HR User and Leave Approver can write at level 1. Other roles can only read level 1.