Time for action—creating a new user and assigning to a group

In this section, we will create a new user and assign this user to the newly created Product Entry user group. Finally, we will examine the user to be sure that the user can only reach product related menus on the administration panel.

  1. Let's open the System | Users | Users menu.
    Time for action—creating a new user and assigning to a group
  2. Let's click on the Insert button. Then, we will fill in the user information. Let's choose User Group as Product Entry and do not forget to change the Status field to Enabled.
    Time for action—creating a new user and assigning to a group
  3. We should now Logout from the system as we are using it as an admin.
    Time for action—creating a new user and assigning to a group
  4. Let's login to the administration panel with the user we have just created.
    Time for action—creating a new user and assigning to a group
  5. For example, let's try to open the Catalog | Categories menu.
    Time for action—creating a new user and assigning to a group
  6. As we can see in the following screenshot, we have got a Permission Denied error. If we try other menus except Catalog | Products, we will end up with the same screen.
    Time for action—creating a new user and assigning to a group
  7. Now, let's browse to the Catalog | Products menu. As we can see from the following screenshot, we are able to use this menu. Remember that we had assigned both access and modify permissions. This lets us not only view product information but also change it or insert new products.
    Time for action—creating a new user and assigning to a group

What just happened?

In this section, we have learned to create a new user assigned to a user group. In this specific case, our Product Entry group user Jack could only view and change information under the Catalog | Products menu. The other menus are closed to this user and he gets a Permission Denied message if he tries to open them.

Have a go hero—creating a new user and assigning to the Manager user group

Create a new user and then, assign this user to the Manager user group which you previously created. Test the user functionality on the administration panel, especially on changing store level permissions, such as installing a new payment module.

Pop quiz—Users, user groups

Decide whether the following statements are true or not:

  1. Each user can be assigned to more than one user group on OpenCart.
  2. We can create a user with view-only access to all store administration panel menus, but without the ability to change anything.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.213.238