Auto Assign Address Book Policy

Bryan Ochoa 0 Reputation points
2026-12-02T00:20:25.38+00:00

Afternoon!

Anyway of being able to auto assign a Address Book Policy automatically to any new users? Have seen some fourms in the past but unsure if anything new has come out since then.

Currently working to make a custom list in Address Book to list specific calendars that people can add.

User's image

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Elena-VH 3,190 Reputation points Independent Advisor
    2026-12-02T00:50:48.57+00:00

    Dear Bryan Ochoa,

    According to my research, there is currently no native way to automatically assign an Address Book Policy (ABP) to new users based on their domain at the time the mailbox is created. In most environments, the ABP must either be assigned manually as part of the mailbox creation process.

    A common approach is to use a scheduled PowerShell script that periodically checks for newly created mailboxes and assigns the appropriate ABP based on the user's domain or other mailbox attributes. This helps eliminate the need for manual assignment while ensuring new users receive the correct policy.

    For more information, please refer to this article: Assign an address book policy to users in Exchange Online

    Additionally, if automatic ABP assignment is important for your organization and to ensure your feedback reaches the right teams, I highly recommend submitting your feedback directly to Microsoft Ideas · Community, where the product development team can know your requirements and ideas for product improvements. If enough users raise tickets for the same idea, Microsoft may consider adding this feature in the future. 

    Thank you for your patience and understanding. If you have any questions or if I have misunderstood anything, please feel free to reach out. Looking forward to your update.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-12-02T00:21:40.9333333+00:00

    Exchange Online has no native “default ABP” that is automatically assigned at mailbox creation; assign it after provisioning with Exchange Online PowerShell, either manually or from your existing provisioning automation.^1^

    Assign the ABP after provisioning

    Connect to Exchange Online PowerShell, preview mailboxes that do not have an ABP, and then assign the policy:

    Connect-ExchangeOnline
    
    # Preview affected mailboxes
    $Users = Get-Mailbox -ResultSize Unlimited -RecipientTypeDetails UserMailbox |
        Where-Object { -not $_.AddressBookPolicy }
    
    $Users | Format-Table DisplayName,PrimarySmtpAddress
    
    # Run only after reviewing the list
    $Users | ForEach-Object {
        Set-Mailbox -Identity $_.Identity -AddressBookPolicy "Your ABP Name"
    }
    

    Verify the result:

    Get-Mailbox -ResultSize Unlimited |
        Format-Table Name,PrimarySmtpAddress,AddressBookPolicy -Auto
    

    This is a post-provisioning script, not a complete scheduled solution. For full automation, invoke it from the process that creates or licenses the mailbox. Any unattended scheduler must connect to Exchange Online using a supported unattended authentication method and an identity with permission to run Get-Mailbox and Set-Mailbox.

    If different users require different policies, populate one of CustomAttribute1 through CustomAttribute15 during provisioning and filter on it. Microsoft recommends these attributes for identifying ABP populations.^1^

    $Users = Get-Mailbox -ResultSize Unlimited -Filter `
        "CustomAttribute15 -eq 'CalendarUsers' -and AddressBookPolicy -eq `$null"
    
    $Users | Format-Table DisplayName,PrimarySmtpAddress
    
    $Users | ForEach-Object {
        Set-Mailbox -Identity $_.Identity -AddressBookPolicy "Calendar Users ABP"
    }
    

    Build the resource-calendar address list

    If the objective is simply to provide a convenient list of selected room or equipment calendars, a custom address list may be enough; an ABP is needed when different user populations must receive different GAL/address-list views. Address lists are filter-based and dynamically evaluate recipients as their properties change.^2^

    First, mark the selected resource mailboxes:

    Set-Mailbox "Boardroom 1" -CustomAttribute1 "ResourceCalendar"
    Set-Mailbox "Training Room" -CustomAttribute1 "ResourceCalendar"
    Set-Mailbox "Projector 1" -CustomAttribute1 "ResourceCalendar"
    

    Then create the list:

    New-AddressList -Name "All Resource Calendars" `
        -IncludedRecipients Resources `
        -ConditionalCustomAttribute1 "ResourceCalendar"
    

    Custom address-list management is performed through Exchange Online PowerShell. The Address List RBAC role is not assigned to any role group by default, so it must be added to an appropriate administrative role group before running New-AddressList.^3^

    Preview the actual membership:

    $List = Get-AddressList -Identity "All Resource Calendars"
    
    Get-Recipient -ResultSize Unlimited `
        -RecipientPreviewFilter $List.RecipientFilter |
        Select-Object Name,PrimarySmtpAddress,HiddenFromAddressListsEnabled
    

    If existing resources already had CustomAttribute1 set before the list was created but remain absent, trigger reevaluation by temporarily changing and restoring that property:^3^

    $Resources = Get-Mailbox -ResultSize Unlimited -Filter `
        "CustomAttribute1 -eq 'ResourceCalendar'"
    
    $Resources | ForEach-Object {
        Set-Mailbox $_.Identity -CustomAttribute1 "ResourceCalendar-Refresh"
    }
    
    $Resources | ForEach-Object {
        Set-Mailbox $_.Identity -CustomAttribute1 "ResourceCalendar"
    }
    

    ABP and Outlook visibility

    When using an ABP, include the custom list in its -AddressLists collection. An ABP must also specify a GAL, OAB, and room list.^4^

    New-AddressBookPolicy -Name "Calendar Users ABP" `
        -GlobalAddressList "\Your GAL" `
        -OfflineAddressBook "\Your OAB" `
        -RoomList "\All Rooms" `
        -AddressLists "\All Resource Calendars","\All Users"
    

    The custom list’s visibility is not automatically identical for every user. It depends on the user’s GAL, OAB, and assigned ABP. Because the screenshot shows Offline Global Address List, also ensure the applicable OAB contains the intended lists and is delivered through the user’s ABP. Outlook cached mode uses the OAB for local address-list lookups.^2^


    References

    1. Assign an address book policy to users in Exchange Online
    2. Address lists in Exchange Online
    3. Manage address lists in Exchange Online
    4. Create an address book policy in Exchange Online
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.