Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

LDAP Query - Exclude Exchange Users Hidden from Address Books

Posted on 2007-03-21
6
Medium Priority
?
2,714 Views
Last Modified: 2008-05-31
How can I change an LDAP Query to stop Exchange users who have been hidden from Address Lists from showing up? All I use at the moment is;
(objectClass=user)
0
Comment
Question by:NeoI5theOne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 35

Expert Comment

by:rakeshmiglani
ID: 18762707
Add msExchHideFromAddressLists=FALSE
0
 

Author Comment

by:NeoI5theOne
ID: 18762925
Yeah, I had tried this already, but it doesn't work. What am I doing wrong?

(&(msExchHideFromAddressLists=FALSE)(objectClass=user))
0
 
LVL 35

Assisted Solution

by:rakeshmiglani
rakeshmiglani earned 400 total points
ID: 18763085
the msExchHideFromAddressLists attribute is set to <Not Set> if the user is not hidden from the GAL.
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
LVL 30

Expert Comment

by:LauraEHunterMVP
ID: 18763129
To query on a <Not Set> attribute, you would need to use a "NOT" query like this one:

(&(objectClass=user)(objectCategory=Person)(!msExchHideFromAddressLists=FALSE))

In other words: "show me the users where this attribute is NOT set to FALSE."
0
 
LVL 30

Accepted Solution

by:
LauraEHunterMVP earned 1600 total points
ID: 18763137
Sorry, was typing too quicklly (and it's too early in the morning):


(&(objectClass=user)(objectCategory=Person)(!msExchHideFromAddressLists=*))

In other words: "show me the users where this attribute has NOT been set to any value."
0
 

Author Comment

by:NeoI5theOne
ID: 18763303
Worked perfectly, thanks
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
A bad practice commonly found during an account life cycle is to set its password to an initial, insecure password. The Password Reset Tool was developed to make the password reset process easier and more secure.
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

704 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