A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
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