How to get user roles in template?

I’m trying to get a list of the user roles in a template so that I can show fields based on the user that’s logged in while in Active Assembly mode. Is there a way to do this? I see that there’s a function in the PSO toolkit that identifies the user’s currently selected community, so there has to be something that identifies role. Here’s the community function:

$user.psoObjectFinder.getUserCommunity()