Can someone explain me exactly what is “user role” and what it means? I know that when we add a user in the Karaf console, we can add them with a role. This role can be used for example as explained in the openHAB documentation Building Pages - Components & Widgets | openHAB to know which user can see the widget and the component and this post Is openhab 3 multiuser? - #25 by tarag also explains how to add multiple roles for a user by modifying the userdata/jsondb/users.json file.
I am using openHABian, so my questions are: can someone explain to me what a user role means and in which application it can be used (for the visibility/access of the different page, homepage, sitemap, widget, …)? If possible, please give me some examples. And where can I find the file userdata/jsondb/users.json?
These answers will help me a lot because I am trying to improve the access control of the different users of openHAB.
Thank you very much for your answer, it is clearer.
And where can I turn off the visibility of the main interface for the overview, locations, equipment and properties so that the user has to log in to see them? Because I’ve tried it and I couldn’t get it to work.
And I have another question, a user can only see the page and cannot, for example, turn on/off a light by performing an action on a page with a switch?