Solved

Get all users in a group

Posted on 2002-07-08
7
335 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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