Active Directory: retrieving all users in a group

R

rh

Hi,

I need to retrieve all usernames within an active directory security group
(including sub-groups) into my C# application. Is there a relatively simple
way of doing this? (I'm hoping for a simple ldap query but I feel I'm out of
luck)

Thanks,
-rh
 
W

Willy Denoyette [MVP]

rh said:
Hi,

I need to retrieve all usernames within an active directory security group (including
sub-groups) into my C# application. Is there a relatively simple way of doing this? (I'm
hoping for a simple ldap query but I feel I'm out of luck)

Thanks,
-rh



Take a look at the DirectoryEntry & DirectorySearcher classes in System.DirectoryServices in
the docs.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top