Share via

Issue with Microsoft Graph Insights API - Shared Items Not Appearing

Tejas Chaudhari 0 Reputation points
2025-03-21T10:12:52.7233333+00:00

I am using the Microsoft Graph Insights API to retrieve shared items. However, I have noticed an inconsistency:

 

  • When I share a folder or a JSON file from a Microsoft Group to a user, it does not appear in the insights/shared API response.
  • When I share a .docx or .jsonl file, it does appear in the API response.

 

API Endpoint Used:

GET https://graph.microsoft.com/v1.0/me/insights/shared

 

Expected Behavior:

  • Any file or folder shared with a user should be listed in the API response.

 

Actual Behavior:

  • Some file types (e.g., .docx, .jsonl) appear correctly.
  • Other types (e.g., folders, .json files) do not appear in the response.

 

Questions:

  1. Is there any known limitation or filtering mechanism that prevents folders or JSON files from appearing in the insights/shared API?
  2. Are there specific permissions required for retrieving all file types?
  3. Is there a limitations for specific formats of files, if so what are they?

 

Any insights or workarounds would be appreciated. Thanks!

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Aashutosh Tiwari - MSFT 435 Reputation points Microsoft External Staff
    2025-03-21T11:24:28.5433333+00:00

    Hi @Tejas Chaudhari ,

    Thank you for reaching out to Microsoft!

    I would like to inform you that I have tried this API in my test tenant GET https://graph.microsoft.com/v1.0/me/insights/shared. This API generally tells what items you have shared on mail or on teams and gets synced time to time be it documents like docx, png. For JSON file, you shall copy the content of the JSON file in Notepad and save as txt file and for folders please convert folders to zip files and try sharing on mail. I'm sure that when you will call the API next time. The zip and txt file will be displayed at the top of API response

    Hope this helps.

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

    Was this answer 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.