Solved

Get all users in a group

Posted on 2002-07-08
7
328 Views
Last Modified: 2010-04-04
I simply hate programming for Active Directory!

Here's the question:
how do I list all the users in a specific group?

I need this to be done using ADS functions.

Thanks in advance.

Alex
0
Comment
Question by:simonet
7 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 7139833
Hi Alex!   :-)

How are you?

I've never done ADS programming yet. But just from the documentation I think it might work like this:

(1) Get an IADsGroup instance of the specific group:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi/iadsgroup.asp

(2) The IADsGroup.Members property should be able to list the users of the group.

No idea whether this helps...

Regards, Madshi.
0
 
LVL 15

Author Comment

by:simonet
ID: 7236630
Hi Madshi,

I got some code from
http://www.agnisoft.com/adsi/Conf2000/3132.htm

and it still didn't help me.

Is there any other tricks in your sleeve?

Thanks, pal.

Alex
0
 
LVL 15

Accepted Solution

by:
simonet earned 0 total points
ID: 7250362
I got it working, based on the example above (in my previous comment).

Thanks anyhow.

Yours,

Alex
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 15

Author Comment

by:simonet
ID: 7250363
I got it working, based on the example above (in my previous comment).

Thanks anyhow.

Yours,

Alex
0
 

Expert Comment

by:CleanupPing
ID: 9343091
simonet:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9460312
simonet,
No comment has been added lately (18 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Accept simonet's answer http:#7250362 and Refund

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now