How to Display SharePoint Content Based on a User's Location
Question details
The user wants to know if it is possible to configure SharePoint to automatically display different policies or information (e.g., German content vs. US content) based on the viewer's geographical location.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Managing a global SharePoint intranet where specific regional content or policies need to be shown to users depending on the country they are currently located in.
- Observed behavior
- Looking for a native setting to route users to location-specific content, as the standard SharePoint interface displays the same content to all users with access permissions regardless of their geography.
Verify your SharePoint administrator permissions and ensure you have clearly defined the regional boundaries and user groups you wish to target before implementing any custom solutions.
Explore Custom SPFx Development for Geo-Targeting
Because SharePoint lacks an out-of-the-box feature for automatic IP-based location targeting, engaging in custom SharePoint Framework (SPFx) development is the official recommendation.
Currently, Microsoft SharePoint does not provide a native toggle or built-in web part that automatically detects a user's geographical IP address to swap out page content. To achieve true dynamic location-based rendering, custom scripts or development must be utilized.
The Microsoft Q&A community is the best resource for consulting with developers who have built custom SPFx extensions for this exact scenario.
Navigate to the SharePoint Development section on Microsoft Q&A (learn.microsoft.com/en-us/answers/tags/336/office-sp-development).
Click 'Ask a question' and describe your need to display region-specific content (such as US vs. German policies) based on IP or user location. Be sure to include your current SharePoint environment (e.g., SharePoint Online).
Work with a SharePoint developer to deploy a custom SharePoint Framework (SPFx) web part that reads the user's location via an external API and conditionally renders the appropriate document library or text.

Workaround: Use Audience Targeting with User Profiles
Instead of real-time geographic tracking, you can use SharePoint's native Audience Targeting feature combined with Azure Active Directory (Entra ID) location attributes to show content to specific regional groups.
Draft Your Regional Policies Seamlessly with WPS Office
While setting up custom location-based targeting in SharePoint requires specialized development, creating the actual documents and policies for your regional teams doesn't have to be complicated. WPS Office is a robust, lightweight, and completely free alternative to Microsoft Office, making it incredibly easy to draft, format, and collaborate on your business documents before uploading them to your intranet.
- 1. Download and Install WPS Office: Visit the official WPS website to download the free suite. The installation takes just a few minutes and is compatible with Windows, Mac, and Linux.
- 2. Create or Edit Your Policies: Open WPS Writer to draft your regional policies. You can natively open any existing Microsoft Word documents without losing formatting.
- 3. Save and Upload to SharePoint: Save your finalized documents in standard .docx or .pdf formats, then upload them directly to your targeted SharePoint document libraries.

Frequently Asked Questions
Can SharePoint automatically detect my location and change the site language?
SharePoint Online relies on the user's personal language and region settings configured in their Microsoft 365 profile rather than their physical GPS or IP location. Users can manually change their preferred display language in their account settings to view the multilingual user interface (MUI).
Is Audience Targeting the same as location-based targeting?
No. Audience Targeting filters content based on predefined Microsoft 365 groups or Entra ID profile attributes (such as department or assigned office location), whereas true location-based targeting would dynamically change content based on the user's real-time geographic IP address.
Where can I find developers to help build a custom SPFx location web part?
You can seek assistance, code snippets, and guidance by posting your specific requirements in the SharePoint Development section of the Microsoft Q&A forums, or by exploring open-source repositories like the PnP (Patterns and Practices) GitHub community.




