title: How can I retrieve list of Active Directory users
body: <p>I am working on an intranet ASP.NET MVC web application, and I need to retrieve all the user names from Active Directory (I do not need groups). </p>
  
  <p>Currently I have enabled Windows authentication and users can sign in directly to the web application. And for the data access layer I am using Entity Framework.</p>
  
  <p>But I need to get all the user names for administration purposes, and assign these users to my application custom groups which I have created. Any idea about how to accomplish this ?</p>