Forum Discussion
Common user attributes synchronized
- Aug 22, 2025
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
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
i got it right at the end, i found my error reading better that article, but thanks again for pointing it to me