LDAP Query - Exclude Exchange Users Hidden from Address Books

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)
NeoI5theOneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rakeshmiglaniCommented:
Add msExchHideFromAddressLists=FALSE
0
NeoI5theOneAuthor Commented:
Yeah, I had tried this already, but it doesn't work. What am I doing wrong?

(&(msExchHideFromAddressLists=FALSE)(objectClass=user))
0
rakeshmiglaniCommented:
the msExchHideFromAddressLists attribute is set to <Not Set> if the user is not hidden from the GAL.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

LauraEHunterMVPCommented:
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
LauraEHunterMVPCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NeoI5theOneAuthor Commented:
Worked perfectly, thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.