A unified data governance solution that helps manage, protect, and discover data across your organization
Hi Libaan Hassan,
Thank you for sharing the detailed behavior you are seeing with the eDiscovery Graph APIs. I understand this can be confusing, especially since the search creation itself succeeds.
Based on how Microsoft Purview eDiscovery is designed today, this behavior is expected.
When a search is created programmatically using the Microsoft Graph API (app‑only access), the search object is created and can be retrieved successfully. However, advanced Premium actions such as Estimate statistics and Add to review set are only supported for searches that are fully initialized through the Purview portal UI.
Searches created in the Purview portal go through additional internal processing that prepares them for downstream Premium operations. Searches created via Graph API may exist and return 200 OK on GET requests, but they are not yet eligible for estimate or review‑set operations, which is why those calls return 404 NotFound. This is a known product behavior and is not related to permissions, licensing, or token type, provided the case is eDiscovery (Premium) and the correct permissions are granted.
- Create the eDiscovery search in the Microsoft Purview portal UI
- Use the Microsoft Graph API for post‑creation automation, such as:
- Running estimateStatistics
- Adding results to a review set
- Exporting or reporting
- Adding results to a review set
- Running estimateStatistics
This approach aligns with Microsoft’s supported patterns for eDiscovery automation and avoids the 404 errors you are encountering.
At this time, creating searches in the Purview portal and then using Microsoft Graph for follow‑up operations is the recommended and supported solution. This should allow estimate and review‑set operations to work as expected.
Microsoft references Links:
- eDiscovery search – estimateStatistics (security namespace)
https://learn.microsoft.com/graph/api/security-ediscoverysearch-estimatestatistics - Add search results to a review set (security namespace)
https://learn.microsoft.com/graph/api/security-ediscoveryreviewset-addtoreviewset - Notice about deprecated eDiscovery APIs and supported namespaces
https://learn.microsoft.com/graph/api/ediscovery-sourcecollection-estimatestatistics
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
Please do not forget to "Accept Answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.