I am running ERPNext 15 in a docker container and have discovered a strange pattern with the admininstrator account. Maybe it’s the expected behavior but seems a little odd. I have reproduced this a couple times now. I am not using the official Docker config but rather a custom one I created but doubt that should matter. Steps to reproduce:
Spin up a new docker container
Login as user Administrator and the password specified during the build
Follow the on screen instructions to setup admin account. Enter the email and a different, secure password.
Setup the company and go into ERPNext
Everything seems fine. If you look at the user list, it shows the account I just created. Can do administrative stuff, etc.
Log out
Log back in entering administrator as the username and the password specified during build (same as step 2). Not the password set in step 3.
Go to the user list. Two additional users have now been added. One named Administrator and one named Guest.
Shouldn’t the account created in step 3 be the true administrator account? Or is this expected behavior as in I create an account in step 3, but then I need to log out and go back in as Administrator and change that password too? Something seems really off to me here.
I have 2 administrators (the original Administrator, a new one created at the time of initializing ERPNext) and if I try to delete the second one, it says “There should remain at least one System Manager” even though both users have the System Manager role.
If you look at “Roles and Permissions” for the first user created via the web interface when the site is first browsed, with “Administrator” the permissions are identical
But “Administrator” has more permissions. I think the frappe framework basically doesn’t look at roles in some cases, as there is code like:
if user == "Administrator":
debug and _debug_log("Allowed everything because user is Administrator")
return True
I think the point we are trying to get across here is, and using your examples, that the 1st user isn’t being set as “super god”. There is a weird behavior where the “super god” administrator isn’t being set until someone logs in a second time and another user is created. It’s that second user than that becomes “super god”.
This is whn I logged in as Hardeep Singh Rai, admin user, first user created by administrator. Now users are 30, two user guest and administrator are not listed.