OneDrive / onedrive-api-docs

Official documentation for the OneDrive API
MIT License
447 stars 228 forks source link

Accessing Shared Folders from Outside Organization Using Microsoft GA #1799

Open smiteshchaudhary opened 1 month ago

smiteshchaudhary commented 1 month ago

Category

I am trying to access shared folder on onedrive using https://graph.microsoft.com/v1.0/drives/{remoteItem-driveId}/items/{remoteItem-Id}/children. I am using https://graph.microsoft.com/v1.0/me/drive/sharedWithMe?allowexternal=true to get the values of {remoteItem-driveId} and {remoteItem-Id}.

ERROR

The response after hitting the API :- { "error": { "code": "itemNotFound", "message": "Item not found", "innerError": { "date": "2024-06-13T05:14:24", "request-id": "XXXXXXXXXXXXXXXXXXXXXXXXXXX", "client-request-id": "XXXXXXXXXXXXXXXXXXXXXXXXXXX" } } } I am unable to access the shared content through the API while i can do the same using onedrive web app.

My question : Is access to external shares possible across tenants?