PC Review


Reply
Thread Tools Rate Thread

Active Directory: retrieving all users in a group

 
 
rh
Guest
Posts: n/a
 
      25th Feb 2007
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


 
Reply With Quote
 
 
 
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      26th Feb 2007
"rh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Active Directory Users to a Group on a Workstation whoopes@gmail.com Microsoft VB .NET 8 23rd Dec 2006 05:38 PM
Active Directory - Enumerating Users from a Group John Microsoft VB .NET 0 5th Jul 2006 10:55 AM
Problem retrieving Active Directory users tangus via DotNetMonster.com Microsoft ASP .NET 1 1st Oct 2005 05:59 AM
Is there a way to get all Group or Users objects from Active Directory Barmaley Microsoft Access Form Coding 1 18th May 2005 12:31 AM
Get users from a group in Active Directory m z via .NET 247 Microsoft Dot NET 1 26th Apr 2004 08:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:20 PM.