Forum Discussion
OneDrive direct download link
Hi,
We have tried to get direct download link or to access publicly shared drive file with Graph API .
It seems that the the URL structure has changed as well as the API.
The thing behind the API is that i cant access file though https://graph.microsoft.com/v1.0/shares/{sharedDriveItem-id}
this endpoint since when i get the link and try to encode it to get sharedDriveItem-id the response is that the
"The sharing link no longer exists, or you do not have permission to access it.".
Anyone has any idea how to get direct download URL from initial public share URL give by someone?
Thank you.
1 Reply
- LarsHammerCopper Contributor
I have the same issue. The shares endpoint used to work with a shareId obtained via the createLink action, but it fails as mentioned above.
I have captured a set of repro steps using the MS Graph Explorer https://github.com/Dbquity/OneDriveSharing
Note, that the link.weburl also returned from the createLink operation still works.
As far as I can tell, this must be a bug in the shares endpoint implementation.
Regards
Lars Hammer