Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enumerating users in a group/OU

Status
Not open for further replies.

D1000

Technical User
Aug 16, 2002
46
US
I am having a devil of a time coming up with the appropriate syntax to enumerate the users within a particular group or OU.

Listing all the users or groups on a computer is no problem but trying to list the users within a group either returns nothing or an error.

I am sure I am missing something but the goal is really quite simple: list all users for a given group or OU.

I have tried the following to no avail (assume the group is Enterprise Admins:

(&(objectCategory=person)(objectClass=user)(memberof=Enterprise Admins))

(&(objectCategory=person)(objectClass=user)(CN=Enterprise Admins))

(&(objectCategory=person)(objectClass=user)(memberof=CN=Enterprise Admins))

Any help would be much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top