User based permission [Solved]

Just want to check if there is any work in progress around adding user based permission to Home Assistant?

Currently I only see that certain dashboards can be made “admin view only” but to use the UI in a shared environment some level of privileges may be desirable. For example, to not allow kids to open garage door but be able to see its status and so forth.

You can control the visibility of Lovelace Views on a per-user basis.

3 Likes

@123 thanks for pointing me in the right direction!
This is exactly what I needed for my UI!

Glad to hear that solved the issue for you.

Instead of adding the phrase “[Solved]” to the topic’s title, simply select the “Solution” tag in my post.

Screenshot from 2021-08-29 14-51-37

When checked, it will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. For more information, refer to guideline 21 in the FAQ.

1 Like

Hi Taras,

The solution worked but running into a weird problem. Here are the steps I followed:

  1. Created a “test user” for this thread and noted its ID from User configuration
  2. Selected the Lovelace UI that this user need to access
  3. Edited the UI tab and selected “raw configuration”
  4. Added the user ID under “visible” settings (manually added)
  5. Restarted HA
  6. Started an incognito session and logged in as “test user”
  7. Right enough, I only saw a single tab that was modified in step-3
  8. But when I go back to admin account and select the same tab for “raw configuration”, I do not see the “visible” setting specific to “test user”.

This is not a problem for now but I would like to know that if I need to remove “test user” access what is the way forward.
Thanks!

1 Like

Will this work with Mushroom cards?

Link is dead, is there another resource you can provide? TIA

2 Likes

Could it be the visible: user section of a dashboard-view?

But how to restrict all other views to some user?

1 Like

I saw how to remove some dashboards, but the default one still shows up as well as Energy, Logbook, History, Media, and a bunch of others.

You know what I don’t want? I don’t want my kids to have access to my to-do list. They’ll start randomly checking stuff off the list. Even a wall tablet will suffer from this issue.

I’d really like a way of assigning dashboards to non-admin users.

Instead of giving a family member access to all my cameras, I’d rather just give them a dashboard that lets them open the garage and maybe toggle some lights. That’s it.

So there’s that MyQ app situation with Chamberlain. I can bypass that completely with Home Assistant except that I can’t assign a single locked-down dashboard to someone, so it gives them access to my whole home.

2 Likes

I’ve also been thinking for a long time about how I can realise this. My heating installer should ONLY have access to the ‘Heat pump’ dashboard and not to my calendar, the entities, the logbook…
Maybe you can set something with cloudflare so that ONLY one page is displayed in a redirect and all other pages are forbidden, but I haven’t managed that yet.

2 Likes

Thanks. But this would make things too complicated and I’ll likely lose interest or track of it over time.