Error while getting current user's OneDrive

Vikram Singh 20 Reputation points
2024-06-11T12:31:47.15+00:00

Here is the error,

{     "error": {         "code": "itemNotFound",         "message": "Item not found",         "innerError": {             "date": "2024-06-11T11:24:49",             "request-id": "754bf6c0-4464-40cb-b7f4-bcb037ebdddc",             "client-request-id": "754bf6c0-4464-40cb-b7f4-bcb037ebdddc"         }     } }

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,218 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,136 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,790 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 42,131 Reputation points
    2024-06-12T02:04:23.8433333+00:00

    Hi @Vikram Singh

    If you are trying to get the current user's OneDrive, then just call the GET /me/drive endpoint. In addition, you also need to make sure that the logged in user has a valid MS 365 license.

    Hope this helps.

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

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.