title: How do I get the Active Directory Information with Sharepoint programatically on sharepoint 2013 Farm Solution On Code Behind File?
body: <p>I want to Get the Active Directory names in sharepoint in a list.</p>
  
  <p>To got Know that SharePoint 2013 Has some Hidden URL which Shows Current Active Directory User I wan to get it into List.</p>
  
  <pre><code>http://{YourSharepointUrl}/_catalogs/users/simple.aspx
  </code></pre>
  
  <p>Now I want to have list of all the names Displayed on my sharepoint</p>
  
  <p>I am using the code:</p>
  
  <pre><code>private static void GetAllSiteUsers()
  {
      // Starting with ClientContext, the constructor requires a URL to the server running SharePoint. 
      var sharepointContext = new ClientContext("http://yoursharepointurl/");
  
  
  }
  </code></pre>
  
  <p>Now I am Getting error it says about assembly reference doesn't exist.So I checked on google and added up this ddl and add the  using <code>Microsoft.SharePoint.Client;</code> reference also.Still Not working.</p>
  
  <p>Please Let me Know what needed to be done Guys</p>
  
  <p>Purpose Of Making Program:To have all the AD Users and Make a work Group so that I can Assign them some right in such a way when assigned grp open something some other URL in iframe shows. and if some one else than other URL in iframe is shown to him.</p>
  
  <p>Thanks IN Advance Guys.</p>