To control how your Azure AD organization collaborates with other Azure AD organizations through B2B collaboration, use External Identities cross-tenant access settings. These options affect the level of outgoing access your users have to external organizations as well as the level of inbound access users in external Azure AD organizations have to your resources.
Configure cross-tenant access settings for B2B collaboration