Solved

Get all users in a group

Posted on 2002-07-08
7
326 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
Comment Utility
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
Comment Utility
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
Comment Utility
I got it working, based on the example above (in my previous comment).

Thanks anyhow.

Yours,

Alex
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 15

Author Comment

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

Thanks anyhow.

Yours,

Alex
0
 

Expert Comment

by:CleanupPing
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

11 Experts available now in Live!

Get 1:1 Help Now