You can create a CA policy that only targets SharePoint Online. Keep in mind it will still affect some Teams functionality, as Teams uses SPO/ODFB for file storage and more, but users will be able to login to Teams and use messaging/calls.
AZURE-AD-Conditional Access
Hi,
I would like to restrict access to SharePoint Online and OneDrive to a specific IP location. However, I do not want this condition to affect access to Microsoft Teams. For instance, SharePoint can only be accessed at the workplace, but Teams can be used to send and receive messages regardless of location and IP address.
Is this possible?
Thanks,
2 answers
Sort by: Most helpful
-
-
Allen Xu_MSFT 13,776 Reputation points
2021-07-27T07:32:02.637+00:00 Hi @Lucy Chen ,
Agree with @Vasil Michev . Here are the steps to restrict users to be allowed to access content in SharePoint and OneDrive only from specific IP addresses.
- Access SharePoint Online admin center as a SharePoint administrator.
- Select Policies from left-side navigation -> Access control.
- Select Network location on the upcoming page.
- Set Allow access only from specific IP address ranges to Yes, enter IP addresses or ranges in the textbox and click Save.
If an Answer is helpful, please click "Accept Answer" and upvote it.
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.