Rammy Charles
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.
Any suggestions would be appreciated.
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:
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=*)
This should then list all the user accounts that has the telephone number field populated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://social.technet.microsoft.com/wiki/contents/articles/5392.active-directory-ldap-syntax-filters.aspx