Microsoft Graph Java SDK - Unable to receive shared files on One Drive as a Event

Product Marketing 41 Reputation points
2020-12-02T09:48:20.797+00:00

Hi All,

I have a Paid subscription with Office 365 account. I am trying to integrate OneDrive to my application, where I need some support from you in understanding the implementation of OneDrive's share events.

We are not receiving the share events like sharing a file / folder etc..,. Integrated Webhook according to the documentation, able to receive delta events like if there are any files added etc.,. Need some help in understanding the implementation of handling / receiving the events when User shares the files / folders / sites on OneDrive. Let me know if you need more information

What I need / interested is the file / folder data which is actually getting shared to the user. If one User shares a file with another user, then I should be able to access / download the file and able to store / read the content of the file real time(with some delay acceptable).

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,711 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2020-12-02T19:07:56.91+00:00

    You can create a subscription to the root folder of a SharePoint/OneDrive for Business drive: /drive/root or to any folder in a user's personal OneDrive: /drives/{id}/root /drives/{id}/root/subfolder. Here's the documentation for it.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Product Marketing 41 Reputation points
    2020-12-03T04:36:23.697+00:00

    Thanks for reply. Can you provide me some thoughts on Share events how we receive them and how to handle them.

    0 comments No comments