We have our Active Directory setup as email enabled security groups to allow each container to be used as an outlook distribution list.
What I need to do is to come up with an export script that will allow me to either export all the containers under one container to a CSV file, or if easier, set up and open query in SQL so that when a user requests a group list, I can return all the attributes for each user in the group.
To give you an example of the structure, it goes as follows
User (member of committee)
What is the best approach for this, and where do I put the path of containers in the query syntax?