KoenZomers / OneDriveAPI

API in .NET Framework 4.8.0, .NET Core 3.1 and .NET 6.0 to communicate with OneDrive Personal and OneDrive for Business
Eclipse Public License 1.0
110 stars 34 forks source link

Can I get a link that does not allow download? #36

Open JulioJ30 opened 2 years ago

JulioJ30 commented 2 years ago

Hi, Is there a way to generate a shared link that does not allow the download of the file that I am sharing? Thanks.

KoenZomers commented 2 years ago

Unfortunately that is not possible today. Only OneDrive for Business offers such functionality and only on Office documents and only through the SharePoint API. This is not available through the Microsoft Graph, which is used by this code.