Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-includes\translations.php on line 1174 Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-includes\translations.php on line 1367

C# has very good integration with Active Directory, and you can query all the objects you need. First, you'll need to reference and import the following libraries: using System.DirectoryServices; using System.DirectoryServices.AccountManagement;   .Net has a UserPrincipal built-in class, which will allow you quick access to common objects such as the Name and User Principal name // create your domain context PrincipalContext ctx = new PrincipalContext(ContextType.Domain); // define a "query-by-example" principal - here, we search for a UserPrincipal // and with the first name (GivenName) of "Bruce" UserPrincipal qbeUser = new...