Access control - multiple users - Main UI

Hello,

I have encountered the problem in my previous post:

I have a problem when I do Settings → API Security → Disable implied user role. I am using temperature and the temperature of my item will disappear like this:

And when I enable it again, it displays (as before) :

And for users who don’t have a “user” role for example a “role_test” role the main interface will never be displayed.

I’m trying to figure out how to manage access and the different roles of each user.

Can someone help me?

Thank you,

Nicolas Gennart.

As far as I understand the docs e.g. Role (openHAB Core 3.2.0-SNAPSHOT API) and the code e.g.

grep USER ./bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/item/ItemResource.java
    @RolesAllowed({ Role.USER, Role.ADMIN })
    @RolesAllowed({ Role.USER, Role.ADMIN })
    @RolesAllowed({ Role.USER, Role.ADMIN })
    @RolesAllowed({ Role.USER, Role.ADMIN })
    @RolesAllowed({ Role.USER, Role.ADMIN })

There are only two supported user roles: USER and ADMIN even if there is a possibility to define your own rule by using the karaf console.

1 Like

Yes thank you, that’s what I thought.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.