Skip to main content

How permissions work

Permissions decide what each user may see and do in alameen ERP 10. They have three parts: users who sign in with their own names, groups that several users share with the same permissions, and levels that measure how strong each permission is. This page explains the idea. The fields of the definition window are in Users Management.

Users and groups​

  • A user is a login name with a password and permissions of its own.
  • A group is a name that carries permissions shared by its members. You add users to it and they get its permissions.
  • A user can belong to no group, to one group or to several. A group can also belong to other groups, so it takes their permissions and passes them on to its members.
  • If you turn on the option Prevent linking a user with more than one group of permissions on the Save page of the program options, a user belongs to one group only. You can turn the option on only when no user belongs to more than one group; unlink them first.

Example: a group Sales has the sales permissions, and the user Sara Alharbi is a member. Sara gets the sales permissions, and you can add permissions of her own.

Whoever has the permission defines users and groups in two windows: Users Management and Groups Management. They are one window.

Full authorities​

The Full Authorities box gives a user or group every permission without limit. If it is ticked for any group the user belongs to, directly or through other groups, the user also has full authorities, whatever the user's other permissions are.

  • Only users with Full Authorities change the permissions of others, change users' passwords, and delete or modify users.
  • A user without Full Authorities who has the permission Add user set to Low can add users, but cannot give them Full Authorities, a permission or group above his own, a maximum discount above his own, or a minimum or maximum price different from his own when his is not None. Changing an existing user or group needs Full Authorities.
  • A user who has Full Authorities cannot be added to a group from the Users tab.

System administrator​

Do not confuse Full Authorities with the system administrator. The system administrator is a name and password on the database server, not a user of the company file, and it does not appear in Users Management. The program asks for it before protected operations such as restoring backups and updating files. It is explained in Add or remove a system administrator.

Permission levels​

Most permissions are given at one of six levels:

LevelMeaning
PreventDenial. It wins over every other level when permissions are added up.
(inherit)This user or group has no opinion on the permission. It is ignored when adding up, and the value comes from the others.
NoneNo permission. So is any permission that nobody has set.
Low, Medium and HighAn allowed permission, stronger from the first to the third.

Cards and documents have a Security Level. A user opens a record if the level of the user's permission equals the record's security level or is higher. An example is in the Account Card. A user whose permission is Low does not open a record with a higher security level.

Some permissions, such as ribbon commands and reports, have no degrees: they take Prevent, (inherit), None or Low, and Low means allowed. The permissions report prints them as Yes or No.

When you click New in Users Management, the program sets every list to Low, so change them before saving.

How the permissions of a user and its groups add up​

The program works out the effective permissions of a user from the user's own record and the records of all the groups the user belongs to, directly or through other groups. It does this for each permission separately:

  1. If any of them has Full Authorities, the user has full authorities.
  2. Values of (inherit) are ignored.
  3. If any of them is Prevent, the result is Prevent and all the other values are ignored.
  4. Otherwise the result is the highest level among the values. If you turned on the option Pessimistic security system on the Save page, the result is the lowest level among the values that have one.

A source that never set the permission is not counted. Maximum Discount, Minimum Price and Maximum Price of the General tab add up by the same rule: the highest, or the lowest with the pessimistic system. Prices are compared by their order in the list, from None to Consumer. The table of bill forms does not add up: only the user's own table is read, and a filled cell there replaces the combined value for that bill form.

The option Pessimistic security system shows ticked in Program Options, but the program stores it in the file only when Program Options are saved. Until then it reads the option as off and takes the highest levels. When you change this option in Program Options, the program marks every user for a rebuild at the next sign-in of each; saving the options without changing it does not mark them.

Example: the permission "Browse customer cards" and two groups, Sales at Medium and Accounting at Low.

Sara's own valueResult in the normal modeResult in the pessimistic system
(inherit)MediumLow
NoneMediumNone
PreventPreventPrevent

In the normal mode, the value None on Sara does not reduce what the group gives. To take away from one user a permission that a group gives, set Prevent for that user.

To see the effective result for a user, tick Show Active Permissions in Users Management. The program reads a user's permissions once, when the user opens the file. A user who is working now keeps the old permissions until he closes the file and opens it again, and this applies to your own user after you change your record. Saving a user's record marks that user for a rebuild at the next sign-in, and saving a group marks its members.

Where each permission is set​

Each permission has a tab in Users Management and Groups Management.

What you want to setWhere
Name, groups, personal information, discount and price limitsUsers Management
Adding, browsing, modifying and deleting cards, bills, entries, commercial papers and othersCards, Invoices, Entries and Commercial Papers tabs: Cards permissions
Ribbon commands, reports and operationsOperations and Reports tabs: Actions and reports permissions
Smart lists, dashboards, charts, reading prices and branchesMenus, charts and dashboards
Default accounts of bills and approvalsDefault accounts and approvals of a user
Giving one permission to many users at oncePermissions Expander
Copying the permissions of one user to anotherCopy dialog
Preventing changes to old operationsLock Operations by Users
Making card fields compulsorySet Compulsory Values in Cards

What you need to manage users​

  • To open the two windows you need the permission Users Management or Groups Management on the Operations tab.
  • To change the permissions or passwords of others, or delete them, you need Full Authorities.
  • A user marked with Inactive User cannot enter the file.

This page applies to alameen ERP 10, version 10.1.79.764.