0

I used Microsoft Graph API for getting onedrive shared files and folder. I am getting files which is shared with me, but I want files and folder which is shared with other people or external to organisation.

For Microsoft Graph API: https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/drive_sharedwithme

Michael Mainer
  • 3,387
  • 1
  • 13
  • 32
Himanshu N Tatariya
  • 268
  • 1
  • 8
  • 26

1 Answers1

0

There is a shared resource on the driveitem. You should be able to filter on that property to find files and folders shared with other people.

Update - As of today, the shared property is only available on the OneDrive consumer accounts.

Michael Mainer
  • 3,387
  • 1
  • 13
  • 32
  • thanks, could you please provides the filter on that property or API link with filter on that. – Himanshu N Tatariya Oct 25 '16 at 07:33
  • Hello @HimanshuNTatariya, the shared property is currently available on OneDrive consumer accounts. We are working on this functionality for OneDrive for Business. If you don’t mind, can you tell us how you plan to use the shared property in your project? – Michael Mainer Oct 27 '16 at 16:53
  • I want only list out the Shared files and folder with public, with in organisation and outside the organisation and also want user, and then I will handle in one of my project. – Himanshu N Tatariya Oct 28 '16 at 05:40
  • Could you please know how to convert business to consumer account ? – Himanshu N Tatariya Oct 28 '16 at 06:29
  • @HimanshuNTatariya I don't know of a conversion path from business to consumer account. With that said, if your timeline supports it, you could work out how this functionality works in a consumer account in preparation for when it becomes available for business account. – Michael Mainer Oct 28 '16 at 21:07
  • Has the API been updated? I am still not able to get the list of users with whom a given document is shared. – Jude Aloysius Dec 13 '17 at 14:32
  • Please search for and vote on existing feature requests, or create a new feature request, using the [Microsoft Graph User Voice](https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests) – Michael Mainer Apr 09 '20 at 18:46
  • @HimanshuNTatariya, "getting onedrive shared files and folder" - how did you find this? I have similar query: https://stackoverflow.com/questions/61700031/find-the-shared-with-me-folder-id-drive-id-and-files-id-onedrive-microsof, Please help me on this – Learnings May 09 '20 at 16:27