Role-Based Permissions manage access to document types, while User Permissions limit access to specific records like assigned customers or territories. This guide shows how to set up User Permissions for tighter data control.
Use User Permissions when you need:
✔ Territory-based access (e.g., a salesperson sees only "East Region" customers).
✔ Multi-company restrictions (e.g., an accountant accesses only "Company A" invoices).
✔ Departmental isolation (e.g., HR views only their location’s employee records).
Example: A Sales User with the "North Zone" permission cannot see South Zone orders, even if their role allows general access to Sales Orders.
Go to: Home > Users and Permissions > User Permissions
Click "New."
Fill in:
User: Select the employee (e.g., "John Doe").
Allow: Choose the document type (e.g., "Territory," "Company").
For Value: Pick the specific record (e.g., "North Region").
Is Default: Enable to auto-set this value in future transactions.
Applicable For: Restrict the rule to certain DocTypes (e.g., only Sales Orders).
Hide Descendants: Block access to child records (e.g., hide "North Sub-Region" if "North Region" is selected).
Goal: Restrict a Sales User to "West Region" customers.
Create User Permission:
User: "Sales User"
Allow: "Territory"
For Value: "West Region"
Result: The user sees only customers/orders linked to West Region.
Goal: Limit an accountant to "Company A" invoices.
Create User Permission:
User: "Accountant"
Allow: "Company"
For Value: "Company A"
Result: The accountant cannot view invoices from Company B.
Goal: Ensure HR staff see only their location’s employee records.
Link "Branch" field to Employee DocType (via Customize Form).
Create User Permission:
User: "HR Manager"
Allow: "Branch"
For Value: "HQ Office"
For airtight security:
Role Permissions Manager: Grant general access (e.g., "Sales User" can read Sales Orders).
User Permissions: Narrow it down (e.g., only "North Region" orders).
Note: If no User Permission exists, access depends on System Settings:
Strict Permissions Enabled: User sees nothing.
Strict Permissions Disabled: User sees everything (default).
Here’s a quick look at some common issues you might run into.
The user must check all the records? Check:
User Permissions are correctly linked to the document’s field (e.g., "Territory" must exist in Sales Order).
"Apply Strict Permissions" is enabled (Home > Settings > System Settings).
Permission conflicts? Verify hierarchy (e.g., User Permissions override Role Permissions).
Here’s a quick look at some of the best practices for User Permissions.
Audit Regularly: Use the "Permitted Documents for User" report to verify access.
Use "Is Default": Streamline data entry for users (e.g., auto-set their company).
Document Dependencies: Ensure restricted fields (e.g., Territory) exist in target DocTypes.