Prev 4.7. User Management Next

4.7.3. User Groups

User Groups are "Permission Groups" and used to restrict access to certain parts and functions of the shop. Each user is assigned to a user group. By default registered customers are members of the group "shopper".

When can this be useful? Imagine you have a user, who wants to access the "Report" section of the store. Usually this is restricted to admins and stoeradmins. If you assign this user to the admin/storeadmin group, he will also be able to access other sensible parts of the store, where he could change or delete important data. The solution is to add a new User Group called "Report", which will have the same permissions as shoppers PLUS access to the "report" core module. After the Group has been added, you can assign this user to the new group.

User Groups can be added, modified and deleted from the User Group List ("Admin" ⇒ "User Groups").

VirtueMart Administration: User Group List

Figure 4.60. VirtueMart Administration: User Group List


You can click on the name of an existing group to open the user group form.

Note

The groups "admin", "storeadmin" and "shopper" are key groups in VirtueMart and can't be modified nor removed.

You can add a new Group by clicking on the "New" button in the toolbar. This opens the User Group Form:

VirtueMart Administration: User Group Form

Figure 4.61. VirtueMart Administration: User Group Form


Here you can choose a name for the group and the group level.

Note

The higher the group level, the less permissions are assumed: "admin" has higher permissions than "storeadmin", because the group level number is lower.

After you have saved the user group, it is available in the core module and function list/forms.

VirtueMart Administration: The New Group in the Module List

Figure 4.62. VirtueMart Administration: The New Group in the Module List


Now you can start to grant permissions to this new group by checking the boxes in this list for the column of the "New Group".

Important

The same needs to be done for the function list of each module!