You need to sign in to do that
Don't have an account?

Dynamically Display users and roles
I want to display a visualforce page with the users information and with their respective roles. The Output should be like this:
USER EMAIL
RoleA
User A userA@test.com
User B userB@test.com
Role B
User C userC@test.com
User D userD@test.com
Please help me in accomplishing this requirement.
Thanks in Advance!!
try this may be helpful
http://forceguru.blogspot.com/2011/12/displaying-role-hierarchy-on.html