Create Exchange Online Address Lists for a Second Company
Question details
Create an address book policy that shows a second company's mailboxes, resources, and distribution groups.

- 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.
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.
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.
In PowerShell, run Connect-ExchangeOnline and sign in with an account that has the required Exchange permissions.
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.
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')".
Run New-GlobalAddressList -Name "Other Company GAL" -RecipientFilter "CustomAttribute15 -eq 'OtherCompany'". Then run New-OfflineAddressBook -Name "Other Company OAB" -AddressLists "Other Company GAL".
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".
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.

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.

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.




