Forum Discussion

YogeshM664's avatar
YogeshM664
Copper Contributor
Aug 28, 2026

What is the Microsoft Graph API replacement for deprecated Recent, SharedWithMe, and Insights APIs?

Hi Microsoft Graph community,

I'm currently working on a Microsoft Graph integration that needs to retrieve:

  • Files recently accessed/used by the current user
  • Files shared with the current user
  • Files from OneDrive and SharePoint

I'm currently using the following APIs:

GET /me/drive/recent GET /me/drive/sharedWithMe GET /me/insights/used

However, these APIs are deprecated, and some of them will stop returning data after November 2026. (https://learn.microsoft.com/en-us/graph/api/drive-sharedwithme?view=graph-rest-1.0&utm_source=chatgpt.com)

I'm stuck in development because I haven't been able to identify a Microsoft-supported replacement that provides the same functionality.

Could someone please clarify:

  1. What is the official replacement for /me/drive/recent?
  2. What is the official replacement for /me/drive/sharedWithMe?
  3. What is the official replacement for /me/insights/used?
  4. Is there a single recommended Microsoft Graph API that can provide recently used and shared files across both OneDrive and SharePoint?

I'm specifically looking for the officially supported API/recommended approach, rather than a workaround that may also become deprecated.

Any guidance from Microsoft Graph experts or Microsoft employees would be greatly appreciated.

Thanks!

1 Reply

  • maskwill's avatar
    maskwill
    Tin Contributor

    There is no single 1:1 replacement.

     

    /me/drive/recent → use Microsoft Graph Search API to search OneDrive/SharePoint content.

    /me/drive/sharedWithMe → use Microsoft Graph Search API for shared files (especially work/school accounts).

    /me/insights/recent / /shared / /trending → no direct replacement; redesign around Search API and/or the underlying OneDrive/SharePoint APIs.

    Microsoft has deprecated drive/recent and drive/sharedWithMe, with sharedWithMe scheduled to stop returning data after November 2026.

    Best migration choice: Microsoft Graph Search API for discovering files, rather than trying to find a new “Recent/Insights” endpoint.