On this page
Roles and permissions
What it's for
A role is a set of permissions that you assign to users. On this screen you create roles, choose their permissions in a matrix, and add data scope rules to a role. For the concepts behind this, see Permissions and data scope.
Where to find it
- Menu: Platform → Roles.
- URL:
/platform/roles; a specific role is at/platform/roles/<id>.
Permissions
| Action | Key | Label |
|---|---|---|
| View | platform.role.view | Menus Permissions - View |
| New role | platform.role.create | Menus Permissions - Create |
| Edit | platform.role.update | Menus Permissions - Update |
| Delete | platform.role.delete | Menus Permissions - Delete |
The list
Columns: Name, Code, Permissions (how many) and Type (System role or Custom role). You can filter by Name. The toolbar has a New role button.
Every organisation starts with the Administrator system role, which has every permission, plus a set of ready-made custom roles that you can edit: Accountant, Storekeeper, Inventory controller, Cashier, HR officer, Sales, Sales supervisor, Purchasing, Purchasing manager, Accounts payable clerk and Auditor (I2).
Segregation of duties (SP17). Among the ready-made roles, only Inventory controller, Sales supervisor and Purchasing manager approve documents. These three can't create, edit, delete or import the documents they approve. None of the other ready-made roles has any approval permission. And no ready-made role combines any two of these three permissions: posting a goods receipt, posting a supplier invoice, and posting a payment voucher.
The role page
The page title is the role's name, with its code below and its type, System role or Custom role. The main fields are Code and Permissions (the count). The sections are General, Permissions, Data access and History.
System roles are read-only and show this note: System roles are maintained by Positive and cannot be changed. Copy their permissions into a custom role if you need changes.
Fields
The New role dialog
| Field | Required | Rules |
|---|---|---|
| Code | Yes | Starts with a lower-case English letter, followed by lower-case English letters, digits and _; 2 to 50 characters |
| Name (Arabic) / Name (English) | At least one | (I4) |
The dialog shows this hint: The code uses lower-case letters, digits and underscores. Permissions are set on the role page.
The permissions matrix
| Part | What it does |
|---|---|
| Search permissions | Narrows the matrix by Arabic label, English label or key, and expands the modules that match |
| A panel per module | Its header shows the module name (such as General ledger, Master data, Reports & analytics or Platform) and how many permissions are granted, as … of …. Select the header to expand it |
| All | Grants or removes every permission in the module |
| The table | One row per screen (Screen) and one column per action: View, Add, Edit, Post, Delete, Print, History and Export |
| Other permissions | The module's special permissions (such as accepting a price outside the allowed range), as checkboxes |
| An asterisk (*) | The label is a machine translation awaiting review: Machine translation, awaiting review (I1) |
The general ledger reports (trial balance, account statement and so on) are under the Reports & analytics module.
How to
Create a role
- Select New role.
- Enter the Code (for example,
senior_accountant) and a name. - Select Create. The role page opens.
- Select Edit, expand the modules under Permissions, and select the checkboxes you need.
- Select Save. You see Role saved.
- Assign the role to users on the Users screen.
Copy a system role's permissions into a custom role
There's no copy button. Instead, create a new custom role and select the same permissions in it. A quick way is to use the All checkbox for each module, then clear the permissions you don't want.
Restrict a role's data scope
- Select Edit. Under Data access, select Add restriction.
- Choose Restrict by, Access and the values.
- Select Save.
A role's rules apply to every user who holds the role, in the company where it was assigned (P7).
Delete a role
Select Delete and confirm: The role … will be deleted. Roles that are still assigned cannot be deleted.
Common error messages
| Message | Cause | What to do |
|---|---|---|
| The role is still assigned to users and cannot be deleted. | Users still hold the role | Remove it from those users first |
| System roles cannot be changed. | You tried to edit a system role | Create a custom role instead |
| This code is already used. | The code is a duplicate | Choose a different code |
| No permissions match. | The search found nothing | Change the search text |