Filter for custom address lists
I'm creating some address lists in Exchange 2003. The filters will be based on the content of a certain field in the user/contact properties, such as country, company etc.I believe that if you add multiple entries in the conditions list this will do an "AND" operation rather than an "OR"Is there any way around this ? We'd like to have an address list which has a filter which has the condition that a user is a member if they have a company field setting of "Company1" OR "Company2" OR "Company3" etc If I add the 3 condition fields at the moment the search is empty because it is obviously looking for a user who has the setting "Company1" AND "Company2" AND "Company3" It is the same result with an LDAP query but I don't know if there is a way to input an "OR" parameter into the query somewhere ?Thanks
January 29th, 2010 4:08pm

On Fri, 29-Jan-10 13:08:02 GMT, jarweb wrote:>I'm creating some address lists in Exchange 2003. The filters will be based on the content of a certain field in the user/contact properties, such as country, company etc.I believe that if you add multiple entries in the conditions list this will do an "AND" operation rather than an "OR"Is there any way around this ? We'd like to have an address list which has a filter which has the condition that a user is a member if they have a company field setting of "Company1" OR "Company2" OR "Company3" etc If I add the 3 condition fields at the moment the search is empty because it is obviously looking for a user who has the setting "Company1" AND "Company2" AND "Company3" It is the same result with an LDAP query but I don't know if there is a way to input an "OR" parameter into the query somewhere Create the Address List with the ESM and then use ADSIEDIT to replacethe purportedSearch property with your own LDAP query.If you want everything with a alias to show up in the list you can usethis:(&(mailnickname=*)(|(company=company1)(company=company2)(company=company3)))---Rich MatheisenMCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
January 29th, 2010 9:46pm

RichThanks for that info - that helps a lot.Do you know if it's possible to base an address list (via LDAP query or otherwise) on users/contacts being in a particular OU in A.D. ?We are synchronizing contacts from another organization and they are going into one OU - they all have different attributes set for company name - hence my initial quesion above. Would be good if we could create an address list based on contacts IN this container and one based on NOT being in that container. If it's possible this may be easier than having to edit a filter if users with different company name fields were impoprted in future.Thanks
February 3rd, 2010 2:40pm

On Wed, 3-Feb-10 11:40:10 GMT, jarweb wrote:>RichThanks for that info - that helps a lot.Do you know if it's possible to base an address list (via LDAP query or otherwise) on users/contacts being in a particular OU in A.D. ?It's not. The OU isn't a property of the user.>We are synchronizing contacts from another organization and they are going into one OU - they all have different attributes set for company name - hence my initial quesion above. Would be good if we could create an address list based on contacts IN this container and one based on NOT being in that container. If it's possible this may be easier than having to edit a filter if users with different company name fields were impoprted in future.Thanks During (or after) the sync you should be populating a property of theuser with some distinct value. One of the extentionAttributeXproperties would probably be the most convenient.---Rich MatheisenMCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
February 3rd, 2010 6:54pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics