How to Create User Role in Magento 2?

Creating Magento 2 user roles is the security action you should take before creating admin users in your store. They help you define the level of permissions some users are granted with. This restricts their access to certain admin sections to ensure a secure admin panel environment.

Create Magento 2 User Roles

1. Navigate to Admin Panel >  System> >  Permissions >  User Roles and hit the Add New Role button to add a new user role in Magento.

Magento 2 Roles,Add New Role

2. Fill in the User Role Information.

  • Set the Role Name.
  • Specify Your Password (user you are currently logged in under).

Magento2 New Role,Role Information

3. Move to the Role Resources tab and choose the Resources admin a user will have access to.

  • Choose All in Resource Access if you want a user to have access to all pages and capabilities of the admin panel.
  • Choose Custom in Resource Access to select interfaces to which you want to give a user access to.

Magento 2 Roles,Role Resourses

Press the Save Role button once you finish.

Track Admin User's Activity

Once you create a user role in Magento, and give access only to certain areas, you might still need to track user activity. This allows you to see what changes are made in those specific areas your user can access.

view admin panel changes in magento admin