How to create new Magento admin user programmatically Posted on 20th March, 20185th February, 2019, by StephenEdit and add the php file below to the root of your Magento folder. Run it in the browser and the user will be created.