Support for Contacts?

Jan 28, 2014 at 4:16 PM
I am having trouble getting the system to return Contacts instead of just Users. Is this something your framework can handle? It works great for Users and Groups. Thanks.
Mar 10, 2014 at 12:49 PM
The short answer is yes, it can return Contacts. Basically you want a class something like
public class Contact : EntryObject {
    public string Name {get; set;}

    public string Email {get; set;}

    // ... etc.
You might need to be a little more specific with your query, though: the DirectoryType("X") attribute basically adds (objectClass=X) onto the AD filter, so you may find this returns more or fewer objects than you want.

Hope that helps!