My company is a Microsoft shop (Exchange, AD, etc.).
I'd like to do queries on our employee directory like:
Person person = directory.Lookup("jsmith");
string title = person.Fields("JobTitle");
Person manager = person.GetManager();
if (person.IsManager())
{
Person[] subordinates = person.GetSubordinates();
}
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.