How to Get User Role Name?

How to Get User Role Name?

If there a function which I can get current logon User Role Name?
ex. GetUserRoleName(Session.UserID)

return a string?
I'm not sure there's a function, since a user can have more than one role, but you can query it in the database.

Go to Add/Remove References,
Select EnterpriseManager
Check, in the right panel, the USER_MASTER_ROLE and the ROLE entities

Then join the 2 entities in a query, using your Session.UserId . That should work.


Paulo Tavares