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

Vishnu Sengar 0 Reputation points

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.
10,538 questions
0 comments No comments
{count} votes