Solved

LDAP Query - Exclude Exchange Users Hidden from Address Books

Posted on 2007-03-21
6
2,517 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
  • 2
  • 2
  • 2
6 Comments
 
LVL 35

Expert Comment

by:rakeshmiglani
Comment Utility
Add msExchHideFromAddressLists=FALSE
0
 

Author Comment

by:NeoI5theOne
Comment Utility
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 100 total points
Comment Utility
the msExchHideFromAddressLists attribute is set to <Not Set> if the user is not hidden from the GAL.
0
Want to promote your upcoming event?

Is your company attending an event or exhibiting at a trade show soon? Are you speaking at a conference? Spread the word by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

 
LVL 30

Expert Comment

by:LauraEHunterMVP
Comment Utility
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 400 total points
Comment Utility
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
Comment Utility
Worked perfectly, thanks
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

762 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

11 Experts available now in Live!

Get 1:1 Help Now