How to get users roles from domain model.

0
I am using App Store modules--> Administration-->Domain Model. In my over view page, in XPath I want to check login user role based on that I have to change page dynamically. I have usersroles of SUPERADMIN, HRADMIN and EMPLOYEE
asked
1 answers
3

I guess the best practice in Mendix would be to create three different pages and then make them visible for the speicifed user roles. - https://docs.mendix.com/howto50/creating-a-secure-app#23-configuring-page--and-microflow-access-of-a-module .


If you want just parts of your page to be visible you can wrap them in  a div container and put conditional visibility on that for specific user roles. see https://docs.mendix.com/howto40/set-up-visibility-based-on-an-module-role

answered