Create Separate Global Address Lists for Domains in Exchange Online
Question details
Create separate global address lists for users in different domains and assign each group the appropriate address book policy.

- Product
- Microsoft Exchange Online
- Device & OS
- not provided
- Scenario
- An organization with multiple domains wants users to see the intended set of recipients in their address book.
- Observed behavior
- Users in each domain should see the global address list and other address lists assigned through their address book policy.
Install the Exchange Online PowerShell module and confirm that your administrator account has the required Exchange permissions, including the Address Lists role. Choose a consistent recipient attribute and value for each domain; the example below uses CustomAttribute1 with the value DomainA.
Create and assign an address book policy for each domain
Use Exchange Online PowerShell to create a filtered global address list and the other address lists required by an address book policy.
Repeat the example for each domain using unique names and a different attribute value. Apply the attribute to every recipient that should appear in the domain's lists, including relevant contacts, groups, and room mailboxes.
Address book policies control address book views; they are not a security boundary and do not prevent users from communicating with recipients they already know.
Open PowerShell and run Connect-ExchangeOnline, then sign in with an appropriately authorized Exchange administrator account.
For each applicable mailbox, run Set-Mailbox -Identity user@domaina.com -CustomAttribute1 'DomainA'. Use the appropriate Set cmdlet for other recipient types, such as Set-MailContact or Set-DistributionGroup, and tag any room mailboxes that should appear.
Run New-GlobalAddressList -Name 'DomainA GAL' -RecipientFilter "CustomAttribute1 -eq 'DomainA'". Then run New-AddressList -Name 'DomainA Recipients' -RecipientFilter "CustomAttribute1 -eq 'DomainA'" and New-AddressList -Name 'DomainA Rooms' -RecipientFilter "(RecipientTypeDetails -eq 'RoomMailbox') -and (CustomAttribute1 -eq 'DomainA')".
Run New-OfflineAddressBook -Name 'DomainA OAB' -AddressLists '\DomainA GAL'. Then run New-AddressBookPolicy -Name 'DomainA ABP' -AddressLists '\DomainA Recipients' -GlobalAddressList '\DomainA GAL' -OfflineAddressBook '\DomainA OAB' -RoomList '\DomainA Rooms'.
Run Set-Mailbox -Identity user@domaina.com -AddressBookPolicy 'DomainA ABP' for each applicable mailbox. Check the assignment with Get-Mailbox -Identity user@domaina.com | Format-List AddressBookPolicy, then sign in to Outlook with representative accounts and inspect their address books.

Work with Office Documents in WPS Office
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format compatibility make it easy to move existing files into your workflow. Exchange Online address book policies still require Microsoft administration tools.

Frequently Asked Questions
Can I create a global address list for each domain?
Yes. In Exchange Online PowerShell, use New-GlobalAddressList with a unique name and a recipient filter for each group. Assign an address book policy containing the intended GAL to each user's mailbox.
Does an email domain automatically determine which address list a user sees?
No. The example uses CustomAttribute1 to identify recipients, and each mailbox must be assigned the appropriate policy with Set-Mailbox -AddressBookPolicy.
What components does an address book policy need?
An address book policy requires a global address list, an offline address book, a room address list, and at least one address list. Specify these when you run New-AddressBookPolicy.
Why does Outlook still show the old address list?
Changes can take time to reach clients, especially when Outlook uses a cached offline address book. Confirm the mailbox policy with Get-Mailbox, allow time for updates, and update the offline address book in Outlook.
Do address book policies prevent users in different domains from emailing each other?
No. Address book policies change what users see in address books, but they are not a security boundary and do not by themselves block email between recipients.




