Conditional access policy can allow access to Teams and block access for all SharePoint site collections.
Require one of following licenses:
- Microsoft Syntex - SharePoint Advanced Management
- Microsoft 365 E5/A5/G5
- Microsoft 365 E5/A5/G5/F5 Compliance
- Microsoft 365 E5/F5 Information Protection and Governance
- Office 365 E5/A5/G5
Steps:
1.Go to Microsoft Entra admin center -> Protect -> Conditional Access -> Create new policy.
2.In the Users section:
3.In the Target resources sections:
4.In the Grant section:
5.Enable policy.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.