Forum Discussion

StefanoC66's avatar
StefanoC66
Iron Contributor
Aug 21, 2025
Solved

Common user attributes synchronized

We have Entra id Connect configured to synchronize with Office 365 tenant for Exchange Hybrid environment.

We noticed that in exchange online when trying to create a Dynamic distribution group based on user properties only a limited subset is available. 

Even common attributes as "city" are missing.

Is it something related to the Entra ID "default" configuration that does not synchronize such attributes or is something due to exchange online ?

thanks

 

  • Hi StefanoC66​,

     

    You need to use "city" not "l". The error is telling you it does not recognise "l".

     

    When you're working with Exchange Online, you need to use the attribute names from the "property name" column of the article Vasil linked to.

     

    If you're working with Exchange Server, you'd need to use the "LDAP display name" column.

     

    For Exchange Online, this is what you should have tried:

     

    New-DynamicDistributionGroup -Name "TEST" -RecipientFilter "(RecipientTypeDetails -eq 'UserMailbox') -and (city -eq 'Text')"

     

    Cheers,

    Lain

4 Replies

    • StefanoC66's avatar
      StefanoC66
      Iron Contributor

      VasilMichev​ 

      I was trying to do it, I found that KB as well, with this command

      New-DynamicDistributionGroup -Name “TEST” -RecipientFilter "(RecipientTypeDetails -eq 'UserMailbox') -and ( l -eq 'Text')" 

      to filter by "city" which should correspond to "l"

      but I got this error

      Write-ErrorMessage : Cannot process argument transformation on parameter 'RecipientFilter'. Cannot convert value "(RecipientTypeDetails -eq 'UserMailbox') -and ( l -eq 'Text')" to type "System.String". Error: ""l" is not a recognized 

      • LainRobertson's avatar
        LainRobertson
        Silver Contributor

        Hi StefanoC66​,

         

        You need to use "city" not "l". The error is telling you it does not recognise "l".

         

        When you're working with Exchange Online, you need to use the attribute names from the "property name" column of the article Vasil linked to.

         

        If you're working with Exchange Server, you'd need to use the "LDAP display name" column.

         

        For Exchange Online, this is what you should have tried:

         

        New-DynamicDistributionGroup -Name "TEST" -RecipientFilter "(RecipientTypeDetails -eq 'UserMailbox') -and (city -eq 'Text')"

         

        Cheers,

        Lain

Resources