WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to get all users who belongs to some group?

 
   Home -> Windows Other -> Active Directory RSS
Next:  Asleep at the wheel  
Author Message
mateo666

External


Since: Sep 24, 2008
Posts: 1



(Msg. 1) Posted: Wed Sep 24, 2008 11:30 pm
Post subject: How to get all users who belongs to some group?
Archived from groups: microsoft>public>win2000>active_directory (more info?)

Hi i need to get all users belonging to some groups in AD.

Does anybody know what the filter would look like?

thanks


--
mateo666
------------------------------------------------------------------------
mateo666's Profile: http://forums.techarena.in/members/mateo666.htm
View this thread: http://forums.techarena.in/windows-2000-active-directory/1043754.htm

http://forums.techarena.in
Back to top
Login to vote
Richard Mueller [MVP]

External


Since: Feb 25, 2007
Posts: 91



(Msg. 2) Posted: Wed Sep 24, 2008 11:30 pm
Post subject: Re: How to get all users who belongs to some group? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

mateo666 wrote:

>
> Hi i need to get all users belonging to some groups in AD.
>
> Does anybody know what the filter would look like?

You must specify the Distinguished Name (DN) of the group in the filter. If
you want users only:

(&(objectCategory=person)(objectClass=user)(memberOf=cn=TestGroup,ou=West,dc=MyDomain,dc=com))

That filters on all users that are direct member of the specified group,
except any that have the group designated as their "primary". To retrieve
all direct members regardless of class (users, contacts, groups, computers)
use:

(memberOf=cn=TestGroup,ou=West,dc=MyDomain,dc=com)

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows Other -> Active Directory All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
  Windows Other
 Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET