Forum Discussion
svuser
Nov 09, 2022Copper Contributor
Dynamic Distribution Group filter by CustomAttribute
Hello, I am trying to create a Dynamic Distribution Group filter like follows. Example recipients: user1 CustomAttribute1: 'a','b' user2 CustomAttribute1: 'b','a','c' user3 CustomAttribute1: '...
VasilMichev
Nov 10, 2022MVP
This seems to work here:
[09:50:24][O365]# Get-Mailbox shared | fl CustomAttribute5
CustomAttribute5 : 'a'
[09:51:18][O365]# Get-Recipient -RecipientPreviewFilter {CustomAttribute5 -like "*'a'*"}
Name RecipientType
---- -------------
shared UserMailbox
[09:50:24][O365]# Get-Mailbox shared | fl CustomAttribute5
CustomAttribute5 : 'a'
[09:51:18][O365]# Get-Recipient -RecipientPreviewFilter {CustomAttribute5 -like "*'a'*"}
Name RecipientType
---- -------------
shared UserMailbox
- svuserNov 10, 2022Copper ContributorHi Vasil,
Thank you for your reply!
I was wondering how can I apply this to the Dynamic distribution group member filtering?
Set-DynamicDistributionGroup -Identity "DDG-Test" -RecipientFilter ??- VasilMichevNov 11, 2022MVPOh right, forgot you cannot have a leading wildcard for DDG filter. So it doesn't look like it's possible, sorry.