How to view and update address list membership for objects in Exchange Online

Applies to: Exchange Online

Summary


This article describes how to view and update address list membership for objects in Microsoft Exchange Online. 

More Information


  1. To see whom the filter applies to, run the following command:
    $a = get-addresslist "my list" Get-recipient -filter $a.recipientfilter
  2. To see which users are stamped by the address list that you created, run the following command:
    Get-Recipient -Filter {AddressListMembership -eq 'DistinguishedName of the address list'}
  3. For each object that you see in step 1 but don’t see in step 2, you have to tickle the object. To do this, use one of the following options directly in an instance of Windows PowerShell that’s connected to Exchange Online.

    Option 1: If the object is a mailbox, run the following commands: 

    set-mailbox -applymandatoryproperties
    set-Mailbox -SimpleDisplayName


    Option 2: Run the following command: 

    Set-MailUser -SimpleDisplayName


    Option 3: Set any relevant attributes, including custom attributes, on-premises. Then, synchronize the changes to Exchange Online through Azure AD Connect.

    After you tickle the objects, you should see them by running the command from step 2. You can also verify the objects individually by running the following commands:

    Get-Mailbox -identity user@domain.com|fl Addresslistmembership
    Get-Mailuser -identity user@domain.com|fl Addresslistmembership