• 1. London, UK
  • 2. New York, NY
  • 3. Sydney, Australia
  • 4. Melbourne, Australia
  • 5. Paris, France
  • 6. Bangalore, India
  • 7. Amsterdam, Netherlands
  • 8. San Francisco, CA
  • 9. Hong Kong
  • 10. Houston, TX

Tuesday, December 27, 2005

 

All Groups address list and Query-Based Distribution Groups

Posted by Bharat Suneja at 4:52 PM
You create new Query-Based Distribution Groups but they don't show up in the All Groups address list in Outlook clients - cached mode or not.

QBDGs are not really groups, as far as Active Directory goes. They're instantiated from a new class - msExchDynamicDistributionList.

The default ldap filter for All Groups address list, stored in the address list's purportedSearch attribute - is:

(& (mailnickname=*) (| (objectCategory=group) ))

No wonder it doesn't pick up the QBDGs.

To make QBDGs show up in the All Groups address list, you will need to edit the purportedSearch attribute of All Groups.

- Fire up ADSIEdit and expand Configuration | Services | Microsoft Exchange | YourExchangeOrgName | Address Lists Container | All Address Lists.
- Right-click All Groups container | properties
- Scroll down and locate the purportedSearch attribute | click Edit
- after (objectCategory=Group), insert: (objectClass=msExchDynamicDistributionList)

so it looks like:

(& (mailnickname=*) (| (objectCategory=group) (objectClass=msExchDynamicDistributionList) ))

Now go ahead and check the All Groups address list in Outlook. If you're in Outlook 2003 Cached Mode you may need to download entire Address Book (uncheck "Download Changes since last update... ").

Labels: ,

10 Comments:

February 10, 2006 9:48 AM
Blogger Admin said...

Hi,
It's great to came across your post about how to change this.
I made the change and everything works great except the icon of the group changed as well. Do you know how to modify so that I can see the group icon in the GAL?
THanks.

 
February 10, 2006 9:49 AM
Blogger Admin said...

Hi,
It's great to came across your post about how to change this.
I made the change and everything works great except the icon of the group changed as well. Do you know how to modify so that I can see the group icon in the GAL?
THanks.

 
February 10, 2006 9:49 AM
Blogger Admin said...

Hi,
It's great to came across your post about how to change this.
I made the change and everything works great except the icon of the group changed as well. Do you know how to modify so that I can see the group icon in the GAL?
THanks.

 
March 27, 2007 7:31 PM
Anonymous Trenton Van Vickle - tvanvick@americanchemistry.com said...

Hi there, I was looking at my purportedSearch attribute and well it's blank. Any thoughts on where I should look now?
Thanks.

 
May 24, 2007 12:54 AM
Blogger scrantic said...

I mad an extra address list called distribution groups and set a custom atrrib for 1 called Dynamic Distribution and the address list contains them.

 
September 28, 2007 4:34 AM
Blogger nikolay said...

Hi,
How can i hide a disable users in groups. In global address book i can see a disable users - it's not right!
Thx!

Nikolay Kutsenko

 
September 28, 2007 8:40 AM
Blogger Bharat Suneja said...

Nikolay,

Take a look at Query-based Distribution Groups and Disabled Users

You can similarly modify the ldap filters for any Address List or Global Address List.

 
December 7, 2007 10:05 AM
Blogger fowlerm said...

I can see how to exclude the disabled users in QBDG's. But like Nikolay mention, how can this be applied to exclude the disabled users when your viewing the GAL? Anyone done it??

Thanks.

- Matt

 
December 7, 2007 1:49 PM
Blogger - Matt said...

I did figure it out! I seen this article from MS: http://technet.microsoft.com/en-us/library/aa996205.aspx

I then used (!msExchUserAccountControl=2) in purportedSearch attribute to exclude the disabled users.

Here is what I used to exclude disabled users in the GAL:
(&(mailnickname=*)(|(&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(!msExchUserAccountControl=2)(|(homeMDB=*)(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=contact))(objectCategory=group)(objectCategory=publicFolder)(objectCategory=msExchDynamicDistributionList) ))

Here is what I used to exclude disabled users in the All Users List:
(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(!msExchUserAccountControl=2)(|(homeMDB=*)(msExchHomeServerName=*))) ))

Hope it helps..

- Matt

 
April 6, 2008 11:20 PM
Blogger Addiel said...

BTW, You should know that doing this will cause a failure while adding a new Exchange 2007 to the environment.

See MS article: 936907

Addiel C.

 

Post a Comment

Links to this post:

Create a Link

<< Home