title: How to obtain a list of Users from ASP.NET Identity?
body: <p><strong>Edit: This question is outdated</strong></p>
  
  <p>The Identity Framework was a moving target at the moment I asked this. The authors changed quite a few things and they have decoupled several others, making everything easier.</p>
  
  <p>Have a look at the <a href="https://github.com/rustd/AspnetIdentitySample" rel="noreferrer">Asp.NET Identity Sample project on github</a>.</p>
  
  <hr>
  
  <p>I'm creating a small application that requires user management. Registration is not allowed, instead there is a super user that will create and modify login information.</p>
  
  <p>I'm using the new <a href="http://blogs.msdn.com/b/webdev/archive/2013/06/27/introducing-asp-net-identity-membership-system-for-asp-net-applications.aspx" rel="noreferrer">ASP.NET Identity</a> membership system, and sure enough, creating users and adding roles is easy and intuitive.</p>
  
  <p>Now, my question: How to obtain a list of users using the AuthenticationIdentityManager class that is used by the generated AccountController class? I couldn't find a way to access the user list from my controller.</p>
  
  <p>(By the way, the new name "Identity" may sound awesome to some people but it is a pain to search for.)</p>
  
  <p><strong>Edit</strong>: If I try to do this</p>
  
  <pre><code>ApplicationDbContext UsersContext = new ApplicationDbContext();
  UsersContext.Users.ToList(); // Exception
  </code></pre>
  
  <p>I get an exception <code>Invalid column name 'Discriminator'</code>. The definition of ApplicationDbContext is generated automatically by the new application wizard:</p>
  
  <pre><code>using Microsoft.AspNet.Identity.EntityFramework;
  
  namespace Cobranzas.Models
  {
      public class ApplicationUser : User
      {
  
      }
      public class ApplicationDbContext : IdentityDbContextWithCustomUser&lt;ApplicationUser&gt;
      {
  
      }
  }
  </code></pre>
  
  <p>So my guess is that <code>Discriminator</code> column is for telling apart <code>ApplicationUser</code> from <code>User</code>. However, it does not exists in my database (which was created automatically by the application.)</p>