title: .net mvc3 get roles of user
body: <p>I am trying to get a list of roles for a particular user (not the current one logged in). </p>
  
  <p>I figured out how to do this: </p>
  
  <pre><code>var theUser = Membership.GetUser(username)
  </code></pre>
  
  <p>But that just returns a MembershipUser object, which doesn't seem to have a isInRole method. </p>
  
  <p>Is if I have the username as a string, how do I get a list of roles, or check that the user is in a particular role?</p>
  
  <p>I am using all of the default authentication and membership providers. </p>