none
Filter Users for Group using a wildcard - Exchange Online RRS feed

  • Question

  • I'm trying to create a Dynamic group filter using a number from the email address, all of our users  have a year before the email address for example:

    10jsmith@domainname.com and 11bgates@anotherdomain.com , this will be the year they joined the organisation

    the first filter i tried:

    New-DynamicDistributionGroup -Name "Intake2010" -RecipientFilter {(RecipientType -eq 'MailContact' -and EmailAddresses -like '10*@DomainName.com')} -primarysmtp "Intake2010@Domainname.com" 

    the group creates, but is empty, I have also tried adding SMTP to the filter, for example:

    New-DynamicDistributionGroup -Name "Intake2010" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (EmailAddresses -like 'SMTP:10*@domainname.com')} -primarysmtp "Intake2011@domainname.com" 

    again the group creates, but is empty (no users within) 

    I have multiple domains ( over 300) and would rather not have to add custom attributes to these users
    Thursday, July 16, 2015 12:22 PM

Answers

All replies