Table of Contents
View Magento 2 Advanced Permissions Extension Detail Page for Features and Demo
Documentation for Advanced Permissions
Preference
Easily manage multi-vendor stores by assigning custom role permissions to specific managers. Let them see and edit only particular products, categories, store views and websites.
- Restrict access by store view or website
- Separate category/product management
- Limit access to product attributes
- Restrict access to dashboard statistics
Installation
There are two ways of installing extension in magento2.
- Using COMMAND LINE.
- Manually Install extension.
Option 1: Magento 2 install extension using COMMAND LINE (Recommended)
Follow below steps to install extension from the command line.
Step 1: Download the extension and unzip it.
Step 2: Upload it to code directory in your magento installation’s app directory. If code directory does not exists then create.
Step 3: Disable the cache under System → Cache Management.
Step 4: Enter the following at the command line:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy\\
Step 5: Once you complete above steps log out and log in back to the admin panel and switch to Stores → Configuration → Mageants → AdvancedPermission. The module will be displayed in the admin panel.
Option 2: Magento 2 install extension manually
Step 1: Download the extension and unzip it.
Step 2: Upload it to code directory in your magento installation’s app directory. If code directory does not exists then create.
Step 3: Disable the cache under System → Cache Management Edit app/etc/config.php file and add one line code: ‘Mageants_Advancedpermission’ → 1
Step 4: Disable the cache under System → Cache Management
Step 5: Once you complete above steps log out and log in back to the admin panel and switch to
Stores → Configuration → Mageants → Advanced permission, the module will be displayed in the admin panel.
Backend Configuration
After Installation of Extension login to magento admin panel for set configuration of the extension.
You can find configuration at
Stores → Configuration → Mageants → Advanced Permission
Extension Configuration
as per below screen shot you can set all the settings here.
To create a new sub-admin role with advanced permissions, please navigate to Admin panel → System → Permissions → UserRoles. Then, hit the Add New Role button.
Role Information and Resources
- Specify the Role Name
- Switch to the Role Resources tab
- Change the Resource Access option to Custom
- Specify the resources this role will have access to
Then, you can assign this role to certain users. Click the Role Users tab and flag the required users.
Setting Advanced Permissions
With the extension, you can set up advanced permissions to provide or limit access for your store managers to the certain parts of the ad min panel.
In this tab you can limit access to certain store views or websites. Modify the Limit Access To option to
- Allow all stores
- Limit certain websites
- Limit certain store views
For the websites and store views option you should specify the required ones.
For the website and store views options you can limit user role access to the following parts of your store
- Orders
- Invoices and Transactions
- Shipments
- Credit Memos
- Select between the Yes or No options
Advanced: Categories
In the Categories tab you can provide this role with access to all product categories or limit to selected categories. Please tick the necessary categories or subcategories to allow access to them.
Advanced: Products
Next, the Products tab enables you to provide access to all, only selected, or own created products. In second case you will need to flag the required product. In third, you can make products accessible only for their owners that is convenient for the multi-vendor stores.
Advanced: Product Attributes
In the Product Attributes tab you can restrict access to certain product attributes. Set the Allow Access To option to Selected Attributes and specify the desired attributes for this user roles. When the configuring of a certain user role is done, hit the Save Role button.
Changing Product Owner
To provide selective access to a certain product you can set up its owner.
Go to Products → Catalog
Select the desired product Specify product owner in the drop-down menu.