Solved

Get all users in a group

Posted on 2002-07-08
7
331 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Title # Comments Views Activity
Delphi inherited method 6 76
DBGrid or StringGrid ? 6 104
Tidtcpserver listening on multiports? 1 35
How to Get Images From Server to Client using App Tethering 1 26
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 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