Control access based on network location or app

To prevent users and guests from accessing Microsoft OneDrive and Microsoft SharePoint content on devices outside of specific domains, set a location-based access control policy. While you can do this on the Device access page of the OneDrive admin center, we recommend using the new SharePoint admin center, where you can also control access from unmanaged devices. For info, see Control access to SharePoint and OneDrive data based on network location.