Fetching user roles on client side

I’ve already followed the tutorial from @George how to get user details. The problems is, I want the user roles created by the security provider and not the ones stored in the database. In other words, I need the roles which are also used in the security provider enforcer. Is there a way to get the role from the logged in user?

Community Page
Last updated: