Introduction
When creating an instance, the instance will have all the same admin user accounts as you have in production. This is great if you have an account on production, however if you don't or other members of your team don't, you may find yourself repeatedly creating an admin account.
This is where MDOQ comes in, you can configure one or more Magento admin accounts to be created each time an instance is created.
Process
- Select your live connector / production instance
- Navigate to "Settings" > "Post Rollup Actions"
- Here you can add as many admin users as you want.
Under the hood MDOQ will create the admin users using theadmin:user:create
command, so the same limitations apply. (i.e password complexity requirements) - Click save
That's it any new instances will have the configured admin users created.
Troubleshooting
If you have configured admin users and they don't appear to have been created on your new instance, MDOQ displays a log of the attempt.
If you look at the logs for the instance and navigate to "Create Instance" > "Creating Post rollup action". You will see the attempt.
Creating Admin Users On An Existing Instance
If you already have and instance that you want to create admin account(s) on, there are a couple of options.
Creating a one off account
This option is most applicable if you need to provide admin access to a third party such as a module vendor.
You can find a guide on this here
N.B if you synchronize MySQL any admin accounts created this way will be lost.
Creating accounts from the parent instance
If you have configured admin accounts on your live connector / production (parent) instance. But the instance you want the accounts on has already been created.
- Select the instance
- Navigate to "Sync"
- Select "Show More"
- Select "Post Rollup Actions"
- Click proceed.
MDOQ will then replay the post roll up actions, as each instance inherits settings from the parent instance. MDOQ will create the same accounts as it would for a new instance.
Creating different accounts than the parent instance
If you need to create different admin account for an instance, that need to persist MySQL being synchronized.
- Select the instance
- Navigate to "Settings" > "Post Rollup Actions"
- Uncheck the "same as live" checkbox
- Configure the admin accounts you want
- Click "Save"
Once saved these accounts will be recreate even if MySQL is synchronized.
If you would like the accounts to be created straight away.
- Navigate to "Sync"
- Select "Show More"
- Select "Post Rollup Actions"
- Click proceed.