ngennart
(Gennart)
November 18, 2021, 7:57am
1
Hello,
I have encountered the problem in my previous post:
Ok thank you,
Can we configure it for certain users with roles or for the overview, locations, devices and properties, this is only possible by doing Settings → API Security → Enable/Disable implicit user role?
And I don’t know why but when I disable the API implicit user role, I’m using temperature and the temperature of my item will disappear like that:
[without_temp]
And when I enable it again it displays that (as before):
[with_temp]
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.
Wolfgang_S
(Wolfgang_S)
November 18, 2021, 7:20pm
2
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
ngennart
(Gennart)
November 18, 2021, 9:55pm
3
Yes thank you, that’s what I thought.
system
(system)
Closed
December 30, 2021, 1:56pm
4
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.