title: Programmatically querying my company's employee directory
body: <p>My company is a Microsoft shop (Exchange, AD, etc.).</p>
  
  <p>I'd like to do queries on our employee directory like:</p>
  
  <pre><code>Person person = directory.Lookup("jsmith");
  string title = person.Fields("JobTitle");
  Person manager = person.GetManager();
  if (person.IsManager())
  {
      Person[] subordinates = person.GetSubordinates();
  }
  </code></pre>
  
  <p>Is there any easy way to do something like this? I intend to do it on an informal basis in scripts, not in shipping code.</p>