M
m z via .NET 247
Hi All,
I am trying to get a list of users that belong to a group in Active Directory.
Somehow I think I need to use the DirectorySearcher as follows:
DirectorySearcher searcher = new DirectorySearcher(DomainPath);
searcher.Filter = ????
searcher.FindAll();
What do I need to specify in the Filter in order to retrieve the users that are contained in a group?
The MS documentation only tells you how to add users to a group but not how to get them.
Thanks a lot for your help.
I am trying to get a list of users that belong to a group in Active Directory.
Somehow I think I need to use the DirectorySearcher as follows:
DirectorySearcher searcher = new DirectorySearcher(DomainPath);
searcher.Filter = ????
searcher.FindAll();
What do I need to specify in the Filter in order to retrieve the users that are contained in a group?
The MS documentation only tells you how to add users to a group but not how to get them.
Thanks a lot for your help.