question

JrnDreyer-3165 avatar image
0 Votes"
JrnDreyer-3165 asked CarlZhao-MSFT commented

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

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-filesmicrosoft-graph-permissions
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Would you please provide us with an update on the status of your issue?

0 Votes 0 ·

1 Answer

Danstan-MSFT avatar image
0 Votes"
Danstan-MSFT answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.