Others

Create Exchange Online Address Lists for a Second Company

Amos GikundaAmos Gikunda Nov 25, 2026 868 views

Question details

Create an address book policy that shows a second company's mailboxes, resources, and distribution groups.

Create Exchange Online Address Lists for a Second Company
Product
Microsoft Exchange Online
Device & OS
not provided
Scenario
A cloud-only company shares an Exchange Online organization with another company and needs a separate address book view without Active Directory synchronization.
Observed behavior
Users at the second company should see its recipients in their address lists, global address list, offline address book, and room list.
Before you start

Install the Exchange Online PowerShell module, connect with an administrator account, and ensure the account has the Address Lists role. Identify the second company's mailboxes, room mailboxes, and distribution groups, and choose an unused custom attribute to identify them.

Solution 1Recommended

Create an address book policy using a company attribute

Use a custom recipient attribute to build a separate address book view for the cloud-only company.

An email domain can help identify recipients for tagging, but a filter on EmailAddresses can also match aliases rather than only primary SMTP addresses. Exchange Online does not support a leading wildcard in recipient filters, so avoid filters such as '*@otherdomain.com'.

The examples use CustomAttribute15 and the value OtherCompany. Apply the same value to every recipient that should appear in the company's address book, including its user mailboxes, rooms, and distribution groups.

1
Connect to Exchange Online

In PowerShell, run Connect-ExchangeOnline and sign in with an account that has the required Exchange permissions.

2
Tag the company's recipients

For each company mailbox or room, run Set-Mailbox -Identity "recipient@example.com" -CustomAttribute15 "OtherCompany". For each distribution group, run Set-DistributionGroup -Identity "group@example.com" -CustomAttribute15 "OtherCompany". Replace the example addresses with the actual recipients.

3
Create the address lists

Run New-AddressList -Name "Other Company" -RecipientFilter "CustomAttribute15 -eq 'OtherCompany'". Then run New-AddressList -Name "Other Company Rooms" -RecipientFilter "(CustomAttribute15 -eq 'OtherCompany') -and (RecipientTypeDetails -eq 'RoomMailbox')".

4
Create the GAL and offline address book

Run New-GlobalAddressList -Name "Other Company GAL" -RecipientFilter "CustomAttribute15 -eq 'OtherCompany'". Then run New-OfflineAddressBook -Name "Other Company OAB" -AddressLists "Other Company GAL".

5
Create and assign the policy

Run New-AddressBookPolicy -Name "Other Company ABP" -AddressLists "Other Company" -GlobalAddressList "Other Company GAL" -OfflineAddressBook "Other Company OAB" -RoomList "Other Company Rooms". Assign it to each company's user mailbox with Set-Mailbox -Identity "user@example.com" -AddressBookPolicy "Other Company ABP".

6
Check the resulting address book

In Outlook, open the Address Book for an assigned user and check the company GAL, address list, and rooms. Allow time for Exchange Online and the offline address book to update; if recipients are missing, check their custom attribute and policy assignment in PowerShell.

Create an address book policy using a company attribute
Address book policies are not a security boundary: An address book policy controls the address lists presented to users; it does not by itself prevent users from sending mail to or discovering other recipients through other means.
Free Microsoft Office alternative

Use WPS Office for everyday company documents

WPS Office is a free, lightweight alternative for working on company documents while Exchange Online manages your address book policies. Its familiar interface and Microsoft Office format support make it easy to migrate existing files.

Free, lightweight tools for everyday office workCompatible with Microsoft Word, Excel, and PowerPoint formatsFamiliar interface for users moving from Microsoft OfficeCreate and edit company contact or recipient inventories in spreadsheets
microsoft office alternative - wps office

Frequently Asked Questions

Do I need Active Directory synchronization to use an address book policy?

No. You can manage cloud-only Exchange Online recipients and assign their custom attributes and address book policies through Exchange Online PowerShell.

Can I filter recipients directly by their email domain?

EmailAddresses can contain aliases as well as the primary SMTP address, and Exchange Online recipient filters do not support a leading wildcard. Use the domain to identify recipients, then tag them with a custom attribute for the address list filter.

Can I assign an address book policy to a distribution group?

Assign the policy to each user mailbox with Set-Mailbox -AddressBookPolicy. You can tag a distribution group so it appears in the filtered address lists, but you do not assign the policy to the group itself.

Why is a company recipient missing from the address book?

Check the recipient's CustomAttribute15 value and the user's AddressBookPolicy assignment in Exchange Online PowerShell. Also allow time for address list and offline address book updates before checking Outlook again.

Does the policy prevent users from contacting the other company?

No. An address book policy changes the address lists users see, but it is not a security boundary and does not by itself block mail to other recipients.