LDAP Query to Find Users

Posted on 2014-11-25
Medium Priority
Last Modified: 2015-01-06
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.
Question by:GR JN
LVL 13

Expert Comment

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


Author Comment

by:GR JN
ID: 40465419
how would be query a specific field in AD?
LVL 24

Expert Comment

ID: 40466760
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:

Open in new window

LDAP-Query-for-Telephone-No..pngThis should then list all the user accounts that has the telephone number field populated.
LVL 20

Accepted Solution

compdigit44 earned 2000 total points
ID: 40470735
You could easily find this information out by importing the ad powershell model and doing a query for the desired information..

THe following link should point you in the write direction..

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Native ability to set a user account password via AD GPO was removed because the passwords can be easily decrypted by any authenticated user in the domain. Microsoft recommends LAPS as a replacement and I have written an article that does something …
The Windows Firewall provides an important layer of protection and a rich interface to configure it. Unfortunately, it lacks item level filtering. This article details my process of implementing firewall-as-code to reduce GPO bloat.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question