Custom Attributes for Dynamic Distribution Groups

%3CLINGO-SUB%20id%3D%22lingo-sub-2274439%22%20slang%3D%22en-US%22%3ECustom%20Attributes%20for%20Dynamic%20Distribution%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2274439%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20new%20request%20for%20office%20based%20distribution%20group.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EInside%20of%20AD%20on%20prem%20which%20replicates%20to%20O365%20we%20have%20an%20attribute%20that%20is%20within%20general%20and%20then%20office.%20Within%20O365%20Exchange%20centre%20I%20can%20only%20see%20State%20or%20Province%2FCompany%20and%20Department.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20how%20I%20can%20match%20these%20attributes%20so%20that%20I%20wouldn't%20ever%20have%20to%20update%20these%20office%20based%20dynamic%20distribution%20groups%20manually%3F%20We%20have%20near%20400%20users%20here%20and%20it%20would%20be%20a%20manual%20process.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22KurtisUKPS_0-1618492972061.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F273039iB55A26F2B4F6EFB7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22KurtisUKPS_0-1618492972061.png%22%20alt%3D%22KurtisUKPS_0-1618492972061.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2274439%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%20center%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Administration%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
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. 

 

KurtisUKPS_0-1618492972061.png

 

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 user@contoso.com | FL