Restrict SharePoint Online based on subnets

Jimmy2521 1 Reputation point
2020-10-29T05:03:49.67+00:00

Hi,

I know that there's a policy in SPO you could implement to allow access to certain IPs/subnets, but I was told that this restriction would also be applied to OneDrive.

Is it possible to restrict access to SPO based on subnets only without OneDrive being affected by it?

Thanks.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,597 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 104.3K Reputation points MVP
    2020-10-29T07:58:02.703+00:00

    Not really, as they're practically the same thing with some UI differences. You can however configure per-site restrictions via CA policies and the Set-SPOSite cmdlet, so look into that.

    0 comments No comments

  2. Jerry Xu-MSFT 7,956 Reputation points
    2020-10-30T02:59:28.647+00:00

    Hi, Jimmy,
    Per my test, conditional access policy in Azure will both works in OneDrive and SPO, in fact we do not have a separate option for OneDrive when we set the policy. Thus we are not able to restrict access to SPO based on subnets only without OneDrive.

    Set-SPOSite only be able to configure the restrictions on accesses from unmanaged device.
    36060-image.png

    Reference: https://learn.microsoft.com/en-us/powershell/module/sharepoint-online/set-sposite?view=sharepoint-ps

    Official docs which may be helpful:
    https://learn.microsoft.com/en-us/sharepoint/control-access-based-on-network-location
    https://learn.microsoft.com/en-us/sharepoint/control-access-from-unmanaged-devices


    If the 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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.