The add-on "Hmi Utililties" (NxHmiUtilAddon) shows you the user rights of the HMI.
Keep in mind that on every HMI a different user can be logged in! That means you need one add-on for each HMI.
If you want to block buttons or switches in the HMI, you should not use a Boolean PLC variable, but use the authorization property of the HMI Smart Control properties:
Using this property shows the operator why the button cannot be pressed:
Manual functions or operation modes can directly be configured in CpStudio / OES:
Online view of Hmi Util add-on with an admin user (EditData104):
or binary
... View more