Last post Jul 08, 2010 08:58 AM by jroberts
Jun 29, 2010 04:20 PM|jroberts|LINK
Hello, I am trying to display an employee directory on an intranet and I was using this query as a filter:
strResult = "(&(objectCategory=user)(objectClass=user)(userAccountControl=512)(company=*))"
That works - but I see employees that are checked to not be part of the global address list in exchange and I want to filter them here also - so I changed the query to this and it doesn't work:
strResult = "(&(objectCategory=user)(objectClass=user)(userAccountControl=512)(company=*)(!msExchHideAddressLists=True))"
Any suggestions would be appreciated.
Jun 30, 2010 09:53 AM|jhallal|LINK
Check this article , everything about LDAP queries
Jul 07, 2010 06:07 PM|smirnov|LINK
the attribute must be named MSExchHideFromAddressLists
Hope this helps
Jul 08, 2010 08:58 AM|jroberts|LINK
Thank you smirnov!