title: How to access informations of the membership users with MVC4
body: <p>I have a website with a member section. There's also a admin to manage the users. What I want is that the admin sees the informations of the other users, like username and email.</p>
  
  <p>For now, the registration page asks to users a username, a password and an email following <a href="http://www.itorian.com/2012/11/adding-email-details-field-in.html" rel="nofollow noreferrer">this tutorial</a>. It memorises those in the DB just find, in the <code>UserProfile</code> Table. My problem is to access them. I knew how to do it with MVC3 with <code>Membership.GetAllUsers().Cast&lt;MembershipUser&gt;()</code> and with a <code>where</code> to specify the request. </p>
  
  <p>But, in MVC4, <code>Membership.GetAllUsers()</code> is not permitted as I understand. I have tried a lot of different ways found on the web, but none solve my problem. The best I've found is to get only the userName, found <a href="https://stackoverflow.com/questions/4779264/how-to-get-users-based-on-role">in this post</a>  : </p>
  
  <p><code>var model = Roles.GetUsersInRole("StatusWaiting").Select(Membership.GetUser).ToList();</code></p>
  
  <p>where the <code>"statusWaiting"</code> is the role of the users I look for in my DB. But, with this (and some others with the same result), I have the EmailID that appears in the model, but it is always empty. </p>
  
  <p>Does someone know how to achieve this? I'm still looking for it but I haven't found anything yet.</p>
  
  <p>EDIT : If there's is another way to achieve this I'm mind opened</p>
  
  <p>EDIT2 : With the line above, I get MemberShipUser with fields like : Comment, CreationDate,Email,IsApproved,..., ProviderName,...,UserName. So I strating to think that the table where I put the email at the registration is not the same than the one I'm trying to get informations. But I don't figure out which one else it could be</p>