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.
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.