Link to home
Start Free TrialLog in
Avatar of Rammy Charles
Rammy CharlesFlag for United States of America

asked on

LDAP Query to Find Users

We are looking for an LDAP Query that will return results of only domain users who have the Telephone field populated in AD.

Any suggestions would be appreciated.
Avatar of REIT
REIT

In regards to LDAP queries which can be run to lookup accounts in AD for certain fields populated, look here:

http://social.technet.microsoft.com/wiki/contents/articles/5392.active-directory-ldap-syntax-filters.aspx
Avatar of Rammy Charles

ASKER

how would be query a specific field in AD?
Try these steps:

In Active Directory Users and Computers, right click on your domain name on the left pane > Find > in the Find dropdown box select Custom Search > click the Advanced tab > type in the following in the in the Enter LDAP query: box then click Find Now:
(&(objectCategory=person)(objectClass=user))(telephoneNumber=*)

Open in new window

User generated imageThis should then list all the user accounts that has the telephone number field populated.
ASKER CERTIFIED SOLUTION
Avatar of compdigit44
compdigit44

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial