How to add Microsoft Teams as a non-custodial data source in eDiscovery API?

Vishnu Sengar 0 Reputation points
2024-03-15T13:02:53.9166667+00:00

Hi,
I want to create a search to audit all messages from "Guest" in my teams account via API. For it, I was using eDiscovery API but facing an issue when I am trying to create a search. It requires dataSourcesScopes and as far as I understand it correctly, for my use case I need a non-custodial data source. However, in the create Create nonCustodialDataSources Documentation, the allowed values for request body have only user source and site source. How can I add teams as a source so I can ingest all messages from an external Guest user across all my channels and DMs?

A detailed answer with an example request body for non-custodial data source create endpoint would be very helpful! Thank you so much!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,446 questions
0 comments No comments
{count} votes