A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi Lucy_055,
Yes, it is possible. As an admin, you can control access to SharePoint and OneDrive resources in Microsoft 365 based on defined network locations that you trust. This is also known as location-based policy.
Once you define the authorized IP address ranges, any user who attempts to access SharePoint and OneDrive from outside this network boundary (using web browser, desktop app, or mobile app on any device) will be blocked.
For this, follow the steps below:
- Go to the Access control page of the new SharePoint admin center, and sign in with an account that has admin permissions for your organization.
- Select Network location, and turn on Allow access only from specific IP address ranges.
- Enter IP addresses and address ranges separated by commas.
- Click Save.
For detailed information, see Control access to SharePoint and OneDrive data based on network location
Regards,
Neha