Share via

Issue with Microsoft Graph Insights API - Shared Items Not Appearing from Teams Group

Tejas Chaudhari 0 Reputation points
2025-03-24T07:48:21.4966667+00:00

I am using the Microsoft Graph Insights API to retrieve shared items. However, I have noticed an inconsistency in how shared items appear based on their source.  

 

Observations:  

  • When I share a folder or a JSON file from a Microsoft Teams Group, it does not appear in the insights/shared API response.  
  • When I share the same items from OneDrive, they appear correctly in the API response.  
  • Other file types like .docx, .jsonl appear in both cases.  

 

API Endpoint Used:  

GET [https://graph.microsoft.com/v1.0/me/insights/shared](https://graph.microsoft.com/v1.0/me/insights/shared"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, regardless of whether it is shared from OneDrive or a Teams Group.  

 

Actual Behavior:  

  • When shared from OneDrive, all files appear as expected.  
  • When shared from a Teams Group, some file types (e.g., folders, .json) do not appear in the response.  

 

Questions:  

  1. Is there any known limitation that prevents folders or specific file types from appearing in the insights/shared API when shared from a Teams Group?  
  2. Why does sharing from OneDrive work but not from Teams Groups?  
  3. Is there an alternative API or method to retrieve these missing shared items when they originate from a Teams Group?  

 

Any insights or suggestions would be appreciated. Thanks!  

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-03-27T13:59:39.6033333+00:00

    Hi Tejas Chaudhari,

    Thank you for reaching out to Microsoft!

    Currently file types like .json may not appear in the insights/shared API response when shared from Teams Groups.

    The inconsistency arises because OneDrive and Teams Groups use different underlying storage mechanisms. OneDrive is primarily a personal storage service, while Teams Groups leverage SharePoint for file storage.

    Use the /teams/{team-id}/channels/{channel-id}/filesFolder endpoint to list files shared in a specific channel.

    Since this functionality is not available at the moment, you can submit a feature request using this support link. The Microsoft team will monitor these requests and consider enhancements to the Microsoft Graph APIs. I'll also upvote your request to support it.

    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?

    0 comments No comments

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.