Visibility of object based on user role

I’m trying to hide buttons in a navigation tab based on user role (admin). I’ve limited access to use the button on the security tab of the property editor, but I want to hide the visibility of the button all together.

You can bind the visible property of the button to an expression: hasRole("Administrator")

Although this seems straight forward, it does not work. The button is now always gone, regardless of user role.

Is the role name exactly what it’s defined in your user source? Is the project using the same user source?

Is something from security conflicting with the binding?

https://docs.inductiveautomation.com/display/DOC79/hasRole

It was a clerical error on my part. All is better in my world of Ignition. Thanks for the help.

2 Likes