Solved

LDAP Query to Find Users

Posted on 2014-11-25
4
84 Views
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.
0
Comment
Question by:GR JN
4 Comments
 
LVL 13

Expert Comment

by:Rizzle
ID: 40465412
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
0
 

Author Comment

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

Expert Comment

by:VB ITS
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:
(&(objectCategory=person)(objectClass=user))(telephoneNumber=*)

Open in new window

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

Accepted Solution

by:
compdigit44 earned 500 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..
http://blogs.technet.com/b/heyscriptingguy/archive/2013/03/20/use-powershell-to-find-non-default-user-properties-in-ad.aspx
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
The viewer will learn how to count occurrences of each item in an array.

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now