Home

Dynamic Distribution Group with custom recipientfilter by Title contains no members

%3CLINGO-SUB%20id%3D%22lingo-sub-121614%22%20slang%3D%22en-US%22%3EDynamic%20Distribution%20Group%20with%20custom%20recipientfilter%20by%20Title%20contains%20no%20members%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121614%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20create%20a%20dynamic%20distribution%20group%20in%20exchange%20online%2C%20using%20a%20recipientfilter%20to%20include%20all%20users%20with%20a%20specific%20job%20title.%26nbsp%3B%26nbsp%3BI%20started%20an%20exchange%20online%20session%20in%20powershell%2C%20and%20created%20the%20group%20by%20running%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3ENew-DynamicDistributionGroup%20-Name%20%22DDGTest%22%20-RecipientFilter%20%7B(Title%20-eq%20'System%20Administrator')%7D%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20the%20group%20was%20created%2C%20I%20started%20composing%20a%20new%20email%20in%20OWA%20and%20selected%20DDGTest%20from%20the%20address%20book.%26nbsp%3B%20I%20clicked%20the%20%2B%20next%20to%20the%20group%20name%20in%20the%20To%20field%20to%20expand%20it's%20members%2C%20but%20the%20group%20just%20disappeared%2C%20as%20if%20there%20were%20no%20members.%26nbsp%3B%20I%20then%20ran%20this%20powershell%20command%20to%20preview%20the%20results%20of%20the%20group's%20recipient%20filter%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E(Get-DynamicDistributionGroup%20ddgtest).recipientpreviewfilter%3C%2FPRE%3E%3CP%3EThe%20command%20returned%20no%20results%2C%20confirming%20that%20the%20filter%20apparently%20matched%200%20recipients.%26nbsp%3B%26nbsp%3BI%20know%20for%20certain%20that%20the%20job%20title%20I%20specified%20is%20an%20exact%20match%20for%20the%20job%20title%20of%20at%20least%20one%20user.%26nbsp%3B%20In%20fact%2C%20I%20tried%20a%20couple%20of%20other%20job%20titles%20as%20well%2C%20using%20job%20titles%20that%20should%20match%20many%20users%2C%20with%20the%20same%20results.%26nbsp%3B%20Do%20I%20have%20the%20syntax%20of%20the%20filter%20wrong%2C%20or%20is%20there%20something%20else%20I'm%20missing%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-121614%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121880%22%20slang%3D%22en-US%22%3ERe%3A%20Dynamic%20Distribution%20Group%20with%20custom%20recipientfilter%20by%20Title%20contains%20no%20members%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121880%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20shouldnt%20even%20see%20an%20expand%20button%2C%20I'll%20report%20this...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20methods%20to%20preview%20DDG%20membership%20are%20listed%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fbb232019(v%3Dexchg.160).aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fbb232019(v%3Dexchg.160).aspx%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121735%22%20slang%3D%22en-US%22%3ERe%3A%20Dynamic%20Distribution%20Group%20with%20custom%20recipientfilter%20by%20Title%20contains%20no%20members%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121735%22%20slang%3D%22en-US%22%3E%3CP%3EOk%2C%20I%20just%20spotted%20what%20you%20are%20doing%20differently%20from%20what%20I%20am.%26nbsp%3B%20To%20see%20what%20members%20were%20included%20in%20the%20filter%2C%20I%20was%20just%20running%3C%2FP%3E%3CPRE%3E(Get-DynamicDistributionGroup%20ddgtest).recipientpreviewfilter%20%3C%2FPRE%3E%3CP%3EWhen%20I%20run%20the%20command%20as%20you%20did%2C%20it%20does%20return%20the%20expected%20result%3A%3C%2FP%3E%3CPRE%3EPS%20U%3A%5C%26gt%3B%20get-recipient%20-RecipientPreviewFilter%20(Get-DynamicDistributionGroup%20ddgtest).recipientfilter%0A%0AName%20%20%20%20%20%20%20%20%20%20%20RecipientType%0A----%20%20%20%20%20%20%20%20%20%20%20-------------%0ASteve%20Whitcher%20UserMailbox%3C%2FPRE%3E%3CP%3ESo%2C%20is%20this%20actually%20working%20and%20I%20was%20just%20not%20using%20the%20right%20command%20to%20verify%20membership%3F%26nbsp%3B%20I%20wonder%20if%20I%20misread%20that%20somewhere%20or%20just%20made%20it%20up%20out%20of%20thin%20air...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20also%20not%20possible%20to%20expand%20the%20membership%20of%20a%20DDG%20in%20Outlook%20or%20OWA%3F%26nbsp%3B%20That%20would%20explain%20why%20the%20group%20just%20disappeared%20when%20I%20tried%20to%20click%20the%20plus%20to%20expand%20it...%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121704%22%20slang%3D%22en-US%22%3ERe%3A%20Dynamic%20Distribution%20Group%20with%20custom%20recipientfilter%20by%20Title%20contains%20no%20members%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121704%22%20slang%3D%22en-US%22%3E%3CP%3EWorks%20fine%20here%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%5B20%3A19%3A49%5D%5BO365%5D%23%20New-DynamicDistributionGroup%20-Name%20title%20-RecipientFilter%20%7BTitle%20-eq%20%22WC%22%7D%0A%0AName%20%20ManagedBy%0A----%20%20---------%0Atitle%0A%0A%0A%5B20%3A20%3A29%5D%5BO365%5D%23%20Get-Recipient%20-RecipientPreviewFilter%20(Get-DynamicDistributionGroup%20title).recipientFilter%0A%0AName%20RecipientType%0A----%20-------------%0AWC%20%20%20UserMailbox%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FPRE%3E%3CP%3E%5B20%3A20%3A53%5D%5BO365%5D%23%20Get-Recipient%20WC%20%7C%20ft%20Name%2Ctitle%3C%2FP%3E%3CP%3EName%20Title%3CBR%20%2F%3E----%20-----%3CBR%20%2F%3EWC%26nbsp%3B%26nbsp%3B%20WC%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EProbably%20some%20typo%20you've%20made%20in%20the%20string%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Steve Whitcher
Regular Contributor

I'm trying to create a dynamic distribution group in exchange online, using a recipientfilter to include all users with a specific job title.  I started an exchange online session in powershell, and created the group by running:

 

New-DynamicDistributionGroup -Name "DDGTest" -RecipientFilter {(Title -eq 'System Administrator')}

 

Once the group was created, I started composing a new email in OWA and selected DDGTest from the address book.  I clicked the + next to the group name in the To field to expand it's members, but the group just disappeared, as if there were no members.  I then ran this powershell command to preview the results of the group's recipient filter:

 

(Get-DynamicDistributionGroup ddgtest).recipientpreviewfilter

The command returned no results, confirming that the filter apparently matched 0 recipients.  I know for certain that the job title I specified is an exact match for the job title of at least one user.  In fact, I tried a couple of other job titles as well, using job titles that should match many users, with the same results.  Do I have the syntax of the filter wrong, or is there something else I'm missing?

 

 

 

 

3 Replies

Works fine here:

 

[20:19:49][O365]# New-DynamicDistributionGroup -Name title -RecipientFilter {Title -eq "WC"}

Name  ManagedBy
----  ---------
title


[20:20:29][O365]# Get-Recipient -RecipientPreviewFilter (Get-DynamicDistributionGroup title).recipientFilter

Name RecipientType
---- -------------
WC   UserMailbox

[20:20:53][O365]# Get-Recipient WC | ft Name,title

Name Title
---- -----
WC   WC

 

Probably some typo you've made in the string?

Ok, I just spotted what you are doing differently from what I am.  To see what members were included in the filter, I was just running

(Get-DynamicDistributionGroup ddgtest).recipientpreviewfilter 

When I run the command as you did, it does return the expected result:

PS U:\> get-recipient -RecipientPreviewFilter (Get-DynamicDistributionGroup ddgtest).recipientfilter

Name           RecipientType
----           -------------
Steve Whitcher UserMailbox

So, is this actually working and I was just not using the right command to verify membership?  I wonder if I misread that somewhere or just made it up out of thin air...

 

Is it also not possible to expand the membership of a DDG in Outlook or OWA?  That would explain why the group just disappeared when I tried to click the plus to expand it... 

You shouldnt even see an expand button, I'll report this...

 

The methods to preview DDG membership are listed here: https://technet.microsoft.com/en-us/library/bb232019(v=exchg.160).aspx

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Dev channel update to 80.0.355.1 is live
josh_bodner in Discussions on
67 Replies