Download file from SharePoint

Nikhil Tambi 0 Reputation points
2024-10-17T04:54:08.39+00:00

Hi Team,

I would like to know is it possible to download a file from SharePoint using Microsoft graph library?. If yes could you please explain me how we can do this?

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rohit Raghuwanshi - MSFT 625 Reputation points Microsoft External Staff
    2024-10-17T05:55:50.1633333+00:00

    Hello Nikhil Tambi,

    Thank you for reaching out, Microsoft!

    Yes, it is possible to download a file from SharePoint using the Microsoft Graph library. Here is the endpoint to achieve this:

    GET 
    https://graph.microsoft.com/v1.0/sites/$siteId/drives/$driveId/items/$itemId/content
    

    Please ensure you provide below permissions to your application
    Files.Read

    Check below screenshot for reference
    User's image

    For more details refer download driveItem doc.umentation.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.