Forum Discussion

Scales503's avatar
Scales503
Copper Contributor
Nov 04, 2022

Utilise Azure AD properties in Dynamic Distribution List

Hi all,

 

Ask

I'm trying to set up dynamic distribution lists for my organisation which filters out Disabled accounts from the membership list. 

 

Problem

The groups are populated based on their Office location, which when tested on an Azure account, pulls the correct users into the list. It does not seem however that there is either a UI option or Powershell property to filter out accounts which have been disabled. 

 

Environment

We currently work on a hybrid On-Prem/Azure AD configuration and will be creating the DDL's in Exchange Online. The On-Prem element will be removed in time as we bring more Azure only users into the business from other areas, so do not want to build the DDL's to depend on AD records, only Azure.

 

Other solutions tried

M365 groups will not be appropriate as these introduce Teams/Inboxes/SharePoint functionality which is not something we want the entire offices to be interacting with.

 

Many thanks for your support. 

2 Replies

  • There's the AccountDisabled property you can use on Exchange side, although it's not an exact match with the Azure AD property. Or you can set up a dynamic Azure AD group instead?
    As a workaround, you can populate one of the customAttributeXX and use it for the recipient filter.
    • Scales503's avatar
      Scales503
      Copper Contributor
      Thanks for the response, Vasil.

      A dynamic Azure AD group would very easily get me the member list I need to distribute communications to, but I have not found any way to push that member group into a mail enabled resource.

      The Custom Attributes feature is an option; however, I don't see a simple process for it to be populated during the on boarding of users into Azure AD.

      Life would be much easier if Dynamic Distribution Lists could utilize the Azure AD security groups memberlist.

Resources