Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Address Book

  Asked By: Rico    Date: Dec 12    Category: Sharepoint    Views: 824

Requirments: I need to have the ability to select a SINGLE user and
populate a form with the following:

DirectorySearcher myDirectorySearcher = new DirectorySearcher
(mySearchRoot);
myDirectorySearcher.Filter = "(&(objectCategory=person)
(objectClass=user))";
//myDirectorySearcher.ClientTimeout = ;
//=================================================
// Add properties for AcitveDirectory to return below
// Return later to make this a passed value
//=================================================
myDirectorySearcher.PropertiesToLoad.Add("employeeid");
myDirectorySearcher.PropertiesToLoad.Add("sn");
myDirectorySearcher.PropertiesToLoad.Add("givenname");
myDirectorySearcher.PropertiesToLoad.Remove("businesscategory");
myDirectorySearcher.PropertiesToLoad.Add("samaccountname");

I need to pull those properties from my companies AD, but I want to
do it in the form of an address book like SharePoint allows you to
select Members to a site. Is there anyway to access that Address
book object?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Address Book Or get search suggestion and latest updates.




Tagged: