Using the graph api, is there a way to list shares *by* me?

Jörn Dreyer 1 Reputation point
2021-09-08T06:57:18.677+00:00

I know I can get a list of shares with me using the /me/drive/sharedWithMe endpoint. Is there also a way to get a list of all driveItems I shared with others? Or, rephrasing: all driveItems that have permissions set on them? I know I could filter the items in a single folder ... but since I may have shared a file somewhere in my drive I need a recursive query. Or a view of all driveItems with permissions ...

So actually there are two questions:

  1. can odata be used for this kind of recursive query? I don't think so.
  2. does the ms graph api have a view for 'shared by me'?

Thx

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

1 answer

Sort by: Most helpful
  1. Danstan Onyango 3,741 Reputation points Microsoft Employee
    2021-09-09T02:42:32.93+00:00

    Currently MS Graph does not have an endpoint to get the list of files you shared. I see a feature request for this here - How to get one drive files that are shared by you using graph api? that I suggest you upvote so that it may be implemented in the future.

    0 comments No comments