Multi User Magento 2 - Adding Subaccounts
Sub-accounts can be managed both in the Admin Panel and in the Customer Account on the front-end.
Note that the admin can assign existing accounts to parent accounts.
Creating a Subaccount
- As an admin (Back-end)
- As a Customer Master Account (Front-end)
- Log in as Subaccount
- Admin Settings
Admin Panel (via Back-end)
As an administrator, you can create, preview and edit any subaccount on the system.
To access subaccounts on the admin panel, navigate to Customers → All Customers.
Then, click on the 'Edit' button in any of the listed customers.
The " Parent Customer" shows the current parent of that user, if it has one already.
Case 1) Assigning an Existing User to a Parent Account
Go to the Account Information tab and then check the Select Parent Account.
This will assign the account that you are editing to be the Subaccount of the chosen Parent Account.
Case 2) Adding a Subaccount With New User
First, click on edit of the account which will be the parent.
On the details page, select the 'Manage Subaccounts' tab from the left menu bar. You will see a list of all subaccounts created by a selected customer.
To add a new account, click on the 'Add Subaccount' button and you will see a form with four tabs:
- Subaccount information - Define the first and last name, email and determine whether or not the Account is active
- Password - Set the password for this sub-user
- Permission - Select permissions for the sub-user
- Additional Configuration - Set limits (more below)
Customer Account (via Front-end As Master Account user)
To add a subaccount, log in as a customer and go to the My Account page.
If the extension is enabled in the admin area ‘Manage Subaccounts‘ will appear in the left bar. Clicking it will display the list of subaccount users.
To add a new subaccount, select the ‘Add Subaccount' button.
The ' Add Subaccount' form will appear. Enter out the subaccount Information, assign a password to it and select the permissions for it.
- Can Modify Account Data - Self-explanatory.
- Can Display All Orders History - Self-explanatory.
- Can View Master And Other Sub Accounts Order History - the Sub Account can see orders of his Master Account and other Sub Accounts. The option is not visible by default. To activate this option, enable the setting Parent accounts can see orders of the sub-accounts following: Stores → Configuration → CMINDS MULTI USER ACCOUNTS → Subaccounts Configuration → Parent accounts can see orders of their sub-accounts → Yes.
- Can Create Order - Self-explanatory.
- Can Go To Checkout / Checkout Cart - Self-explanatory.
- Will Receive Order Placed Notification - Self-explanatory.
- Force Usage Parent Company Name / VAT / Addresses - Makes the new nested account receive the Company Name / VAT / Addresses from the parent account.
- Can Approve Orders - Self-explanatory.
- Can Manage Subaccounts - Allows the new account to manage nested subaccounts. (Note that this permission requires "Nested Subaccounts" to be enabled. Read more: Adding Nested Subaccounts)
- Can Approve Orders - Allows the user to approve orders of a certain amount. You can set the limit in the following fields:
Leaving the field blank or inputting "0" will result in no limit.
Log in as Subaccount
The extension allows the admin to log in as subaccounts. Click on the Login link next to a necessary account and you will be logged in automatically as the chosen subaccount.
Enabling / Disabling the 'Add Subaccount' Permission
The Site administrator can enable or disable the permission of Master Account holders to add and edit subaccounts.
Navigate to Stores → Configuration → CMINDS → Parent Accounts Configuration → General Options
Set the Allow MasterAccounts to create/edit subaccounts option to "Yes" to enable this feature or "No" to disable it.
Allowing newly created Accounts to Create / Edit subaccounts
Within the Multi User extension Administrators can allow newly created Master users the ability to create/manage sub-accounts of their own.
To enable or disable this feature navigate to Stores → Configuration → Cminds → Parent Accounts Configuration → New Customers Become Parent Accounts
To allow newly created Masteraccounts to create and edit subaccounts by default set the New Customer is able to create subaccounts option to "Yes", to disable this feature set it to "No".