Owner account has no username

Okay, so long story short, I setup my home assistant green, but when I set it up, I accidentally created 7 users because it didn’t react to whatever i wrote. When it did I just setup everything and didn’t think about it, until now a month later when everything has been integrated and I am creating a user for my girlfriend, and noticed that there was an awful lot of users with my name. And that there was an “owner” account - all of these users that are a clone of mine, doesn’t have a username, so they are basically just empty users that I deleted. But the owner account also doesn’t have a username… It just shows “- • Owner”
How do I get access to my owner account when it doesn’t even have a username? I’m pretty sure I know the password, since it will probably be the same I use for mig current administrator account, but if I have no username? Is there a way to give the owner account a username? Or to change the current account I’m using to owner?
I really don’t wanna reset the whole system after I painstakingly got it to work decently

Go to Settings → People → Users (up the top of the page). Click on the owner account and edit it as you see fit. You can change the display name, user name and password.

When i go to users, and click on the account i can only change the Display name, no username or password change from that screen, i cant change the owner account, or any administrator account from there, except the display name

Hmm. You probably have to be logged in as the owner to do that.

Yes thats the problem, how do i login to the owner account when it has no username

Hi,
I´m having the exactly same problem. Lots of users with the same name. All but one have no username. This includes the owner entry.
This could be a result of this problem: https://github.com/home-assistant/core/issues/122356

I have taken a look into the ‘.storage/auth’ file. There are entries for all the problematic users in the ‘users’ section. But only one of them (the one which has an username) has an entry in the ‘credentials’ section.

Is it maybe possible to manually edit the auth file and set “is_owner”: true for the working user to solve the problem?

OK, editing auth file worked for me. :blush:

Make a backup first!
Before starting I added a new user with admin rights as a backup user, in case somthing should go wrong with the edited users.

Then I edited the auth file (build in SSH Terminal and nano editor) and set “is_owner”: true for my working user.
After a HA restart the user had owner right
Then you can delete the other redundant users using the normal user interface.

2 Likes

THANK YOU! Thank you so much! I was already in the process of copying bits of code, just so i could salvage a small part when resetting and starting from scratch!
You saved me a BIG amount of work!
It worked, i just opened “Terminal & SSH”

cd /config/.storage
nano auth
And then i changed “is_owner”: to true,
Saved the file, restarted and now it works!
Thank you!