Share via

Mismatch between Cloud Discovery UI user count and /cas/api/v1/discovery/discovered_apps/ API response

Denis Pojar 0 Reputation points
2026-01-21T11:32:16.5333333+00:00

We are integrating Microsoft Defender for Cloud Apps Cloud Discovery data into our backend and noticed a consistent discrepancy between the portal UI and the REST API results.

Specifically:

This comparison is done:

  • in the same tenant
  • with Cloud Discovery enabled and actively ingesting data
  • using the default/global Cloud Discovery view (no custom stream filters)
  • by directly calling the /cas/api/v1/discovery/discovered_apps/ endpoint

Questions we need clarification on

  1. Is the usersCount field in /cas/api/v1/discovery/discovered_apps/ expected to exactly match the Cloud Discovery UI?
  2. If not:
    • What does usersCount in this endpoint represent precisely?
    • Which API endpoint should be used to retrieve the same per-app user counts shown in the portal UI?
  3. Is this a known limitation or known issue with the /cas/api/v1/discovery/discovered_apps/ endpoint?
Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud Apps
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.