Reputation: 1804
Is it possible to use Microsoft Graph in order to create subscriptions (and therefore - notifications) for changes in documents libraries across all SharePoint sites of certain tenant?
I need to be notified when a change is made to a SharePoint site of a tenant (e.g. a file was uploaded to the site document library).
Up until now, I was able to create subscription for changes in the default TeamSite by creating subscription with resource: drive/root
.
But that's not enough, if I create another TeamSite then I can't find a way to receive notifications for its changes as well.
The same is true for communication sites - I can't find a way to get notifications for changes in them.
Currently, my AAD App is asking only for Sites.Manage.All
permission, but if asking for more permissions can help then it's not a problem.
Is doing what I want possible? Or notifications are only supported for the default SharePoint TeamSite?
If receiving changes in push by subscribing to notifications isn't possible, then I guess I'll have to poll for changes by using delta links.. that should work for any SharePoint site, right?
Upvotes: 0
Views: 294