Getting user role from HMI in AS6 project

Hello,

I am trying to solve the problem of needing administrator privileges for the logged-in user to make changes in the user system. I know that I need to be logged in as an administrator or BR_Engineer role to perform changes. My issue is that I also need administrator rights to check roles at runtime. I am working on a machine with multiple multi-client HMIs.

One possibility is to log in as every connected user and check if I have access. If not, I get the answer. However, this destroying the multi-client functionality.

The second possibility is to have an observer on the system with administrator rights, but that would create a cyber security hole.

Is there any way to retrieve the user’s role in mapp View? For example, via a session variable, event, or similar mechanism?

Hi Rudolf!

There is no option as far as I know to show roles without administator rights anymore, the UserList widget is the only one which shows this per default and needs BR_Engineer rights to be shown, and this includes also the illustration of the roles (btw this has been implemented because of Cyber Security reasons). So only option would be to have a administrator as startup user so you could see all users and roles immediately.