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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query AD about all accounts without manager

Status
Not open for further replies.

AdobeLDAP

Programmer
Sep 10, 2007
2
US
I am new to LDAP. I am trying to query AD about all accounts without manager. The following query will give all the accounts with or without managers.

&(objectCategory=person)(objectClass=user)(!(manager=*)

Does anyone know how to write a query to get all AD accounts without manager?
Thanks!
 
[1]
>The following query will give all the accounts with or without managers.
>&(objectCategory=person)(objectClass=user)(!(manager=*)
Not sure what filter meant as the parentheses seem very casually distributed.
[2]
>Does anyone know how to write a query to get all AD accounts without manager?
May try this.
[tt] (&(objectCategory=person)(objectClass=user)(!manager=*))[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top