Custom Attributes for Dynamic Distribution Groups

Occasional Contributor

Hi there, 


I have a new request for office based distribution group. 


Inside of AD on prem which replicates to O365 we have an attribute that is within general and then office. Within O365 Exchange centre I can only see State or Province/Company and Department. 


Does anyone know how I can match these attributes so that I wouldn't ever have to update these office based dynamic distribution groups manually? We have near 400 users here and it would be a manual process. 




2 Replies
Use PowerShell, the UI only exposes this limited set of attributes.

New-DynamicDistributionGroup -Name Office -RecipientFilter "Office -eq 'Home'"
Try this and it should pull out all available attributes

Get-AzureADUser -ObjectId | FL