Imports entities, alerts, IP ranges and discovery report streams from Microsoft Defender for Cloud Apps ā the CASB view of which cloud applications are in use, by whom, and what has been flagged on them.
For the general flow of adding a source, see Connect Data Sources.
Before you start
A Microsoft Defender for Cloud Apps tenant
Permission to create a Microsoft Entra application and grant tenant-wide admin consent
A client secret stored securely
Step 1 ā Create an App Registration
Sign in to the Microsoft Entra admin center
Open App registrations ā New registration
Name it HARVEN-MDCA, select single tenant, and leave the Redirect URI blank
Click Register, then note the Application (client) ID and Directory (tenant) ID
Step 2 ā Configure API permissions
API permissions ā Add a permission ā APIs my organization uses ā Microsoft Cloud App Security ā Application permissions
Investigation.Read ā Read entities, alerts and IP ranges
Discovery.Read ā Read continuous discovery reports
ā ļø Click Grant admin consent for both permissions.
Step 3 ā Create a Client Secret
Open Certificates & secrets
Under Client secrets, click New client secret
Choose a description and expiration period, then click Add
Copy the Value immediately ā it is shown only once
Step 4 ā Configure the connector in HARVEN
In the Microsoft Defender portal, open Settings
Select Cloud Apps, then under System select About
On the About screen, copy the API URL shown for your tenant and append /api if it is not already present. The final value must look like https://<tenant>.<region>.portal.cloudappsecurity.com/api
In HARVEN, open Workspace ā Data sources ā Add ā Microsoft Defender for Cloud Apps
Enter the API URL, Tenant ID, Client ID and Client Secret
The connector form also offers a PowerShell script that creates the App Registration, assigns the permissions and generates the secret in one command, if you would rather not click through the portal.
What to enter in HARVEN
API URL ā Tenant-specific Defender for Cloud Apps API base URL (Microsoft Defender portal ā Settings ā Cloud Apps ā System ā About; append /api if needed)
Tenant ID ā Microsoft Entra directory ID (Entra admin center ā Overview)
Client ID ā Application registration ID (Entra admin center ā App registrations)
Client secret ā Application secret value (App registration ā Certificates & secrets)
What HARVEN reads
entities ā Users, devices and other cloud entities: identity (entity_id, display_name, type), account posture (email, status, is_admin)
alerts ā Security alerts and their resolution state: alert (alert_id, title, severity), handling (status, resolution_status, resolution_date)
ip_ranges ā Configured IP address ranges: network range (subnet_id, name, subnets)
discovery_reports ā Continuous discovery report streams: discovery stream (display_name, stream_type, last_data_received)
Official documentation
Need help? Contact [email protected].