Administrator Account: Is this an issue or expected behavior?

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:

  1. Spin up a new docker container
  2. Login as user Administrator and the password specified during the build
  3. Follow the on screen instructions to setup admin account. Enter the email and a different, secure password.
  4. Setup the company and go into ERPNext
  5. Everything seems fine. If you look at the user list, it shows the account I just created. Can do administrative stuff, etc.
  6. Log out
  7. 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.
  8. 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 the same issue.

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
2 Likes

No, both are not equal.

If admin with email (the 2nd one) is VIP, then 1st user, administrator is VVIP.

If 2nd is God, 1st is Super God, as 2nd is created by 1st.

There may be many God, but Super God will be only one.

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”.

I tried Frappe-Manager to install Frappe, ERPNext. During setup, it has not asked for any additional admin user, and userlist has two users:

administrator and guest,

both created during the installation.

It installed Frappe 15.33.3 and ERPNExt 15.29.2

This should not be.

There should be 3 users. Check for any filter applied. administrator and guest are created at the time of installation.

This should not be. There should be 3 users. Check for any filter applied.

Expected behabiour.

He is God, not the Super God. For certain tasks on eneed to approach Super God.

Which password you wish to change. Every user can change his password, and even can setup password, if he forget.

I just did a fresh install. This is all I see for users and I confirmed there are no filters:

Is it on cloud or using docker on your own server or without docker on your own server?

Fig 1:

This is when I logged in as administrator, you can see top 3 users (sorted by “created on”):

  1. administrator
  2. guest
  3. Hardeep Singh Rai (first user created after first login, which is also have the role of administrator; 20 of 40 i.e total users are 40)

Fig 2:

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.

I installed on my computer without any docker.

I’m using docker on my own server.