Answer the question
In order to leave comments, you need to log in
Data from Active Directory. What is the data structure?
Good day! I'm trying to get data from AD in my application and stumbled about the data structure. There is an assumption that it should look like this:
public class Users
{
public string UserName { get; set; }
}
public class OrgUnits
{
public string Name { get; set; }
public IEnumerable<OrgUnits> ListOU { get; set; }
public IEnumerable<Users> ListUsers{ get; set; }
}
Answer the question
In order to leave comments, you need to log in
Here you can see a working example, the structure can be viewed in the sResultSet object.
although I'm not sure what you wanted to achieve, the structure is generally hierarchical, so the code you provided will not help in theory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question