What is the supported Microsoft Graph API alternative for the deprecated /me/drive/sharedWithMe endpoint?

Naimur Rashid 20 Reputation points
2026-08-12T05:46:23.4166667+00:00

Hi Microsoft Community,

I am developing a custom SharePoint/OneDrive experience where I need to display the files and folders available under the “Shared with me” section, similar to the functionality provided by SharePoint/OneDrive.

Previously, I was using the Microsoft Graph /me/drive/sharedWithMe endpoint for this purpose. However, this API has been deprecated.

I tried using the Microsoft Graph Search API with a driveItem query as an alternative. Although the Search API can return files and folders, I am not able to reliably reproduce the same behavior and results as the “Shared with me” experience.

In particular, I need to:

  • Retrieve files and folders that have been shared with the current user.
  • Identify the corresponding driveId and itemId.
  • Navigate into shared folders and retrieve their children.
  • Preserve the user's access permissions when navigating shared content.
  • Achieve behavior similar to the native SharePoint/OneDrive “Shared with me” tab.

My questions are:

  1. What is the recommended and supported Microsoft Graph API for retrieving “Shared with me” content now that /me/drive/sharedWithMe is deprecated?
  2. Can the Microsoft Graph Search API be used as a complete replacement for this functionality?
  3. If Search API is the recommended approach, what query or properties should be used to reliably identify items shared with the current user?
  4. Is there another Microsoft Graph API or SharePoint API that can provide the same functionality, including navigating inside shared folders?

Any guidance or example API requests would be greatly appreciated.

Thank you.

Microsoft 365 and Office | SharePoint | Development
0 comments No comments

Answer accepted by question author
Liora 1,630 Reputation points Independent Advisor
2026-08-12T06:39:17.0066667+00:00

Dear @Naimur Rashid,

I hope you’re having a good day. 

Thank you for the detailed question. Unfortunately, you've identified a challenge that many developers are currently facing.

The first thing to note is that GET /me/drive/sharedWithMe has indeed been marked as deprecated and Microsoft states that it will operate in a degraded state until November 2026, after which it will stop returning data.

Regarding your main question, I have not been able to find any Microsoft documentation that identifies a supported 1:1 replacement for the sharedWithMe endpoint. In fact, Microsoft moderators have stated in similar discussions that no official replacement API has been announced at this time.

Based on current guidance and community discussions, Microsoft appears to be steering developers toward Microsoft Graph Search and other drive-centric access patterns rather than relying on the legacy sharedWithMe endpoint.

However, I would not consider the Search API to be a complete replacement for the native"Shared with me" experience. As you've already observed, Search can return driveItem results, but it does not reliably reproduce all of the semantics of the OneDrive/SharePoint Shared with me view, including discovery behavior and navigation scenarios.

Therefore, my current understanding is:

  • There is currently no officially documented 1:1 replacement for /me/drive/sharedWithMe.
  • The Microsoft Graph Search API is the closest supported approach for work or school accounts, but it does not provide full feature parity with the native Shared with me experience.
  • Microsoft has not published guidance describing how to reliably identify all "shared with me" items, preserve the exact navigation experience, or recreate the full OneDrive UX using Search alone.

Given the impact on your implementation, you may also want to raise this through the Microsoft Graph feedback channels or open a support case if you require an authoritative product-group recommendation. At the moment, the gap appears to be that the deprecated API has a clear retirement path, but the equivalent replacement for the Shared with me scenario has not yet been publicly documented.

I hope this information helps point you in the right direction. If you run into any issues while trying the steps, or if something still doesn’t feel quite right, please don’t hesitate to reach out again. I’ll do my best to support you however I can.   

Looking forward to hearing back from you with any updates or additional details.  

Warm regards,  


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

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

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Oldest

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.