Office 365 Groups and Teams support guest users, who enjoy full access to the SharePoint document libraries. You might not want this, because not every document in those libraries are suitable for sharing with guests. The question is how to collaborate with guests while maintaining some control over information. Rights management seems like a good way to accomplish the task.
https://www.petri.com/protecting-office-365-document-libraries-guest-users