Active Directory Saved Query - Group Member Listing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Phylum
    New Member
    • Jul 2007
    • 1

    Active Directory Saved Query - Group Member Listing

    Hi all. Just signed up today and I was hoping to simplify a task I'm sure we may all benefit from.
    I thank you in advance for clicking on this post!
    I want to warn you that I'm no coding guru - I apologize for that.

    I'm hoping I some one could assist me in the creation of a saved query in AD that would report all users in group X. From time to time it would be nice to see what users are members of certain groups. Going to the group and getting the user ID is great - but then I have to get their full name (First and Last). A query that would report this information could be very useful.

    I thought it would look something like this:
    Code:
    (&(objectCategory=group)(objectCategory=user)(givenName=*)(sn=*)(cn=*)(userPrincipalName=*)(cn=GROUP_NAME_HERE))
    or
    Code:
    (&(objectCategory=person)(objectClass=user)(&(objectCategory=group)(name=GROUP_NAME_HERE))
    (and minor variants of the above)

    But obviously I'm wrong. Could someone shed some light on what I'm doing wrong and how I can properly construct AD queries?
    Sorry for any inconveniences this may have caused, especially if this is in the wrong group.
    Last edited by Phylum; Jul 9 '07, 05:10 PM. Reason: Title Adjustment
Working...