How to get users roles from domain model.

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
1 answers

I guess the best practice in Mendix would be to create three different pages and then make them visible for the speicifed user roles. - .

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