Microsoft Defender for Cloud Apps
Developer and API

Work with discovered apps via Graph API | Microsoft Defender for Cloud Apps

In brief

The documentation now explains that the uploadedStreams response provides stream IDs for subsequent queries, identifies the relevant id properties, and clarifies how to retrieve app IDs and apply filters.

What Defender admins need to know

Administrators using the API can follow the documented response values and query sequence more reliably.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Get data about discovered apps

To list all available uploaded streams and get a high high-level summary of all the data available on your Discovered apps page, run the following GET command:command. The response includes the stream IDs you need for subsequent queries:

GET https://graph.microsoft.com/beta/security/dataDiscovery/cloudAppDiscovery/uploadedStreams

To drill down to data for a specific stream:stream returned by the previous GET request:

  1. Copy the relevant <streamID> value (the id property of the uploaded stream) from the GET .../uploadedStreams response.

  2. Run the following GET command usingcommand, replacing <streamId> with the <streamID>id value:value from the previous response:

    GET https://graph.microsoft.com/beta/security/dataDiscovery/cloudAppDiscovery/uploadedStreams/<streamId>/aggregatedAppsDetails(period=duration'P90D')
    

Get the userIdentifier of all users, devices, or IP addresses using a specific app

IdentifyAfter retrieving an app <id> from the aggregatedAppsDetails response, run one of the following commands to identify the users, devices, or IP addresses that are currently using a specific app, run one of the following commands:that app:

  • To return users:

Use filters to see apps by category

Use filters to see apps of a specific category, such as apps that are categorized as Marketing, and are also not HIPPA compliant. For example, run:the following request returns marketing-category apps from the specified stream that are marked as not HIPAA compliant:

GET  https://graph.microsoft.com/beta/security/dataDiscovery/cloudAppDiscovery/uploadedStreams/<MDEstreamId>/aggregatedAppsDetails (period=duration 'P30D')?$filter= (appInfo/Hippa eq 'false') and category eq 'Marketing'