You should add those external domains through Organization Sharing.
- Exchange Admin.
- Organization
- Sharing
- Organization Sharing
- Add the two external domains.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Two external domains were already added in org sharing tab o365 months before.
Example contoso1, contoso2
user can see calendar from contoso 1 domain'users and can search users in gal.
user can not see contoso2 users in gal.
You should add those external domains through Organization Sharing.