Microsoft Defender App

To integrate with Microsoft Defender, users will have to authorize Leen’s Microsoft Defender app, which is an OAuth2 app. This will allow Leen to access the appropriate Microsoft Defender resources in the organization’s account. Leen takes care of the OAuth2 code-flow and access token management, so you don’t have to worry about it.

Onboarding

Follow the steps below to onboard your environment to our Microsoft Defender app.

1

Create Microsoft Defender Connection

With your Leen API Key and your Customer’s Org ID, make a API request to create a new Microsoft Defender Connection. More information can be found on the API Reference page.

2

Granting permission to Leen app for Microsoft Defender

Open the oauth2_authorize_url from the previous step in a new tab. This will prompt the admin user to authorize Leen’s Microsoft Defender app to access their Microsoft Defender resources. Once the user has authorized the app, they will be redirected to Leen on a successful authorization.

3

Pull Data

Now that the user has authorized the app, you can pull data from Microsoft Defender using the connection_id from the first step. More information can be found on the API Reference page.