Thank you for posting your query on Microsoft Q&A. From the above description I could understand that you are looking for a way to filter out user location.
This could be done via Azure AD sign in logs:
- Once identified as safe location you could have the subnet added in "Named locations" and configure conditional access policy for the same.
Please do let me know if you have any further queries.
Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.