Add user to "Read-Only Users" group

Hi All,

as described within Can I Have User Permissions? | Home Assistant Developer Docs there is a group “Read-Only Users” which gives permission of “All three have access to all entities, but the read-only cannot control any of them.”

I see that there is a user “Home Assistant Content”, which has read only group and I would like to add a test user to that group, too.
How do I add a user to a permission group?

EDIT: Yaml preferred, but would be fine with GUI as a starting point, too :slight_smile:

Thanks for your reply - as written in Can I Have User Permissions? | Home Assistant Developer Docs and my first post, the difference should be that “read-only Users” cannot change the state of any entity (at least that’s what I understood).

Yeah…about 10 sec. after I added my reply…this dawned to me too …so that does make sense

Hi,
maybe the docs changed but is the question “how do i add user to read-only group” answered there?
sorry but i don’t understand how to add a user to this group :slight_smile: can you help me?

Greetings
n0nk

+1 to question. Can’t figure out what I need to do to add user to the read-only group. Where I can find necessary setting set read-only group for a user?

Help, please

It’s all in the linked docs:

  • stop HA
  • make a backup of your config folder
  • edit <config>/.storage/auth
  • edit “group_ids”

I needed to have an user which is read-only. So I first created a new user via HA. (url: /config/users)
Then I used the steps above and changed group_ids from system-users to system-read-only:

        "group_ids": [
          "system-read-only"
        ],

Save the file and start HA again. In a first test, this user was not able to change some slider values.
Although these can still be seen. For more detailed access you might want to follow the linked example above.

Hello,

does that still apply?
The link is from 2019?

And how to stop HA?
If I shut my device down I cannot access any file.
Sorry, for the dumb question…

Edit: Ok, managed to get it working by editing the ./storage/auth file on the second attempt (forgot to save file) after reboot this user can view the heating dashboard but when trying to change values like elevation he gets ‘unauthorized…’ - Thank you

Hi there.

HA is running on Docker, so normally its content will be save in somewhere in local path, not the container. is should be like /usr/share/hassio/homeassistant or something like that.

In my system, I can modify /usr/share/hassio/homeassistant/.storage/auth file to archive the goal.