Why does Microsoft Graph return 404 Not Found on my valid query?

Larry Rowe 5 Reputation points
2023-03-19T06:51:20.1333333+00:00

Hello,

I'm developing an application for my school that automatically displays a PowerPoint sent via email to all faculty every morning. Part of this requires fetching the list of OneDrive files that are "Shared With Me." Why does Microsoft Graph Explorer say that this item is "not found" even though it shows the query as a valid option?

User's image

Permissions should not be an issue here because the Graph Explorer is it's own application, not one that I control.

This is quite frustrating, any help is greatly appreciated.

Thank you!

Microsoft Security Microsoft Graph
{count} votes

2 answers

Sort by: Most helpful
  1. Larry Rowe 5 Reputation points
    2023-03-19T07:04:22.27+00:00

    Answered my own question in minutes, wow.

    In the Graph Explorer, you must consent individually to the features you intend to try out.

    1. Click on your profile icon in the top right corner.
    2. Click "Consent to permissions" in the flyout that appears.
    3. Consent to the desired permissions.
    1 person found this answer helpful.
    0 comments No comments

  2. Zehui Yao_MSFT 5,876 Reputation points
    2023-03-23T06:58:35.8633333+00:00

    Hi Larry Rowe

    Great to know that it works now and thanks for sharing the update here.

    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

    [Why does Microsoft Graph return 404 Not Found on my valid query?]

    Issue Symptom:
    Microsoft Graph return 404 error "item not found" when request me/drive/sharedWithMe endpoint in Graph Explorer.

    Current status:
    Issue solved by consenting individually to required permissions.

    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!

    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.