Making userrole accessible as global variables outside of xpaths. - Mendix Forum

Making userrole accessible as global variables outside of xpaths.

2

Hi all, 

 

When xpath’ing to retrieve userroles, it is possible to check with all available userroles in your app.



Outside of xpaths, however, you cannot perform checks in the same way. Would it at all be possible for the userroles available within an application to be accessible as global variables along the lines of %CurrentUser%?

asked
1 answers

Yes, it would be great to have them available as boolean values in expressions, f.e. you could use the tokens in visibility expressions to hide an element for certain user roles.

Created