How to download SharePoint files that are shared to me by others via http?

MT 0 Reputation points
2025-04-28T08:58:40.75+00:00

some one shared a folder to my account(eg: ******@outlook.com), and send me the shared link, like: https://someone-my.sharepoint.com/:f:/g/personal/ssssssss/EksqdZ4NOMhBjgsfc35IqakBaJwaOj1xMzg1BSLj8zEF-A?e=oaqPo8

when i got the link, i want to download all the files from this link via http.

so i created an application at Azure under my account(******@outlook.com), and grant "Files.ReadWrite" permission to my client_id.

then i build a program with the guide from Microsoft Graph REST API:

  1. get access token with my tenant_id, client_id, client_secret --> all goods;
  2. download files from the shared link with access token --> failed,
    got error: "General exception while processing"

how can i fix this ? is it possible to download files that shared from others by this way ?

below is my codes:

enter image description here

enter image description here

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,583 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hien-L 1,910 Reputation points Microsoft External Staff
    2025-04-30T02:49:28.3133333+00:00

    Hi MT,

    Good day! Welcome to Q&A forum.

    If other people share the link with download permission, you can open this link with browser, from browser you can download the files.

    Hope these information helps.

    Please do let us know if you have any further queries.


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.