title: ASP.NET MVC 3: How to get User's Role in a Controller Method?
body: <p>I want to be able to</p>
  
  <ol>
  <li>Get a list of roles of the current authenticated user.</li>
  <li>Filter the data provided to that user based on their role.</li>
  </ol>
  
  <p>I see ways to check if the user is in a particular role, but I don't care what role they participate.  The database will know what roles are allowed to see what data.  I need to submit a collection of these roles to the data service to filter the data based on those roles.</p>
  
  <p>So first step is how do I get all roles associated with the current user in a controller method?</p>
  
  <p>EDIT:</p>
  
  <p>This seemed to work out nicely:</p>
  
  <pre><code>Roles.GetRolesForUser(User.Identity.Name)
  </code></pre>
  
  <p>Supporting answers still welcome.</p>