How to Subscribe to SharePoint Folder Changes via Microsoft Graph
Question details
The user wants to set up change notifications to track modifications within specific SharePoint folders using the Microsoft Graph API.

- Product
- Microsoft Graph API
- Device & OS
- not provided
- Scenario
- Developing a custom application or automated workflow that requires alerts or triggers whenever files are added, modified, or deleted inside a specific SharePoint folder.
- Observed behavior
- Microsoft Graph handles OneDrive and SharePoint subscriptions differently, meaning direct folder-level webhooks may not be fully supported for all SharePoint resources, requiring developers to find the correct endpoint or workaround.
Ensure you have an active Microsoft Azure application with the appropriate Microsoft Graph API permissions (such as Sites.Read.All) and access to the target SharePoint site.
Subscribe to the Parent Document Library and Apply Filters
Since Microsoft Graph typically limits direct subscriptions to individual SharePoint folders, subscribe to the parent list or library and filter the results programmatically.
Microsoft Graph change notifications (webhooks) for SharePoint generally target the entire list or document library rather than isolated sub-folders. To track a specific folder, you must subscribe at the library level and handle the filtering logic within your webhook receiver.
Use Microsoft Graph Explorer to query your SharePoint site and locate the specific list ID or drive ID that contains your target folder.
Send an HTTP POST request to the Microsoft Graph /subscriptions endpoint, setting the resource property to your identified SharePoint list or drive.
Configure your application's notification receiver (webhook endpoint) to accept and parse incoming JSON payloads triggered by document library changes.
Extract the file path or folder ID from the incoming notification and add conditional logic to ignore changes that occur outside your target folder.

Use Microsoft Power Automate as an Alternative
If implementing a custom webhook API is too complex for your scenario, use Microsoft Power Automate to easily monitor specific SharePoint folders without writing code.
Discover WPS Office for Seamless Document Management
While configuring API webhooks for SharePoint requires developer expertise, creating and collaborating on your documents shouldn't be complicated. WPS Office provides a lightweight, highly compatible alternative to Microsoft Office, allowing you to easily view, edit, and manage your files.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the quick on-screen instructions to set up the lightweight application.
- 3. Open Your Documents: Launch WPS Office to immediately start opening, editing, and saving your Word, Excel, and PowerPoint files without formatting issues.

Frequently Asked Questions
Can I subscribe to a specific SharePoint folder directly using Microsoft Graph?
Direct subscriptions to isolated sub-folders are generally restricted in Microsoft Graph. It is recommended to subscribe to the parent Document Library or List, and then apply filtering logic in your application's backend to capture events specifically for the target folder.
What permissions are required to create a webhook for SharePoint lists?
Your Microsoft Entra ID (formerly Azure AD) application typically needs delegated or application permissions such as Sites.Read.All or Sites.ReadWrite.All, depending on whether your app only monitors changes or also modifies files in response to notifications.
Where can I get developer support for Microsoft Graph API issues?
You can post specific API questions, including payload errors and webhook configuration issues, on the Microsoft Q&A forum using the 'Microsoft Graph' tag. This connects you with Microsoft engineers and experienced community developers.
Is Power Automate a good alternative to Microsoft Graph for folder notifications?
Yes. Power Automate offers a reliable, no-code solution using the 'When a file is created or modified' SharePoint trigger. It natively allows you to specify a target folder, saving you the effort of managing complex webhook subscriptions and API authentication.




