Share via

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 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | OneDrive | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

CarlZhao-MSFT 46,456 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.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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