On this page
Permissions and data scope
For every request, Positive ERP answers two questions, and it always checks them on the server, not just in the interface:
- Are you allowed to do this? Your permissions answer that.
- On which data? Your data scope answers that.
Permission keys
Every action in the system is protected by a permission key of the form module.feature.action, such as gl.journal_voucher.post (Journal Voucher - Post). The standard actions and their labels in the role matrix are:
| Action | Label |
|---|---|
view | View |
create | Add |
update | Edit |
post | Post |
delete | Delete |
print | |
history | History |
export | Export |
Special keys appear under Other permissions — for example, gl.exchange_rate.override (Exchange rate - Override on documents) and md.rates.override_range (Exchange rates - Accept a rate outside the min/max range). Every key used by the current screens is listed in the permission index.
Some Arabic key labels were machine-translated and are waiting for the owner's review. They're marked with an asterisk (*) and the tooltip Machine translation, awaiting review (I1).
Roles
A role is a named set of permission keys. There are two kinds:
- System role: managed by the system and can't be edited, such as the administrator role, which holds every key.
- Custom role: created and edited by your organisation. Every new organisation starts with ready-made roles that it can edit: accountant, storekeeper, inventory controller, cashier, HR officer, sales, sales supervisor, purchasing, purchasing manager, accounts payable accountant and auditor (I2).
You manage roles on the Roles screen.
Assigning roles to a user
A role is assigned to a user in a specific company or in All companies. So a user can be an accountant in one company and an auditor in another. A user holds a key in the companies where their assigned roles grant that key.
Individual overrides
An administrator can add an exception for one user on one key, in one company or in all companies:
- Allow grants the key even if the user's roles don't.
- Deny (wins over roles) removes the key even if the user's roles grant it. A deny always wins, even over the administrator role.
Data scope
Data scope decides which records a user can see and work on (P7). It's made up of rules, each with two parts:
| Part | Options |
|---|---|
| Restrict by | Companies, Branches, Departments, Account groups, Documents |
| Access | All, Only the selected (and you choose the values), or Own documents only (for the Documents dimension only) |
If there are no rules, you see No restrictions: all data the roles allow.
How rules combine:
- Each role assignment has a scope: its company (or all companies), narrowed by that role's rules.
- The scopes of the different assignments are combined (a union).
- The user's own rules then narrow the result in each dimension. A user's rules never widen the scope.
- Visible branches are always limited to branches of the visible companies.
What this means in practice:
- Companies and branches. The company and branch picker shows only the ones you're allowed, and documents from other branches don't appear. Trying to reach them gives This company or branch is outside your access.
- Account groups. Users see only accounts that belong to their allowed groups (Account groups). Lines for accounts they aren't allowed are left out of entry details and reports.
- Documents – own documents only. Users see only the journal vouchers they created themselves.
- Year-end close and currency revaluation need a scope that isn't restricted by account groups.
- Company-level entries with no branch (G19). Some company-level entries have no branch (such as the year-end closing entry and revaluation). A user restricted to certain branches sees them in the journal, reports and balances only with the
gl.company_level_entry.viewpermission (Company-level entries - View). A user who can see every branch always sees them. Operations that cover all the books (closing, revaluation) need access to every branch.
In development
- The scope editor doesn't have a picker for departments and account groups yet. Type their IDs, separated by commas, in the Ids, separated by commas field.