J
J
Jaguar_sea2015-08-14 07:10:20
Active Directory
Jaguar_sea, 2015-08-14 07:10:20

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; }
    }

But I'm not absolutely sure about it. Tell me, please, how should it really be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pukhov, 2015-08-14
@Neuroware

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 question

Ask a Question

731 491 924 answers to any question