My org is in the middle of migrating from Dropbox to SharePoint, with project teams accessing SharePoint primarily via MS Teams. We are making most of our Teams public so that our users can easily discover and use them, however there is a large pool of contractors who have O365 accounts that I would like to restrict from discovering or joining these teams. The main concern is their ability to view files in SharePoint, rather than conversations, etc in Teams.
Is anybody aware of a way in O365 to restrict a specific user group from joining or viewing public Teams or SharePoint sites?
While Teams scoped directory search is focused on finding users in Teams and less on access to specific Teams , you may consider exploring SphereShield Ethical wall to enforce a policy as you have required: