Link to home
Start Free TrialLog in
Avatar of NeoI5theOne
NeoI5theOneFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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)
Avatar of rakeshmiglani
rakeshmiglani
Flag of India image

Add msExchHideFromAddressLists=FALSE
Avatar of NeoI5theOne

ASKER

Yeah, I had tried this already, but it doesn't work. What am I doing wrong?

(&(msExchHideFromAddressLists=FALSE)(objectClass=user))
SOLUTION
Avatar of rakeshmiglani
rakeshmiglani
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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."
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Worked perfectly, thanks