App Registration for SOC Anywhere

SOC Anywhere connects to Microsoft Defender via the Microsoft Graph API. To authorise this connection, you need to create an App Registration in your Microsoft Entra ID tenant and grant it the required API permissions. This guide walks you through every step.

You will need the Global Administrator or Application Administrator role in your Entra ID tenant to complete this process.

Step 1: Create the App Registration

  1. Sign in to the Azure Portal.
  2. Navigate to Microsoft Entra ID Microsoft Entra ID App registrations menu item in the Azure Portal
  3. Click on App registrations
  4. Click New registration.
  5. Fill in the form:
    • Name: SOC Anywhere (or any name you prefer)
    • Supported account types: Accounts in this organizational directory only (Single tenant)
    • Redirect URI: leave blank for now
  6. Click Register.
New app registration form in Microsoft Entra ID

After registration you will be taken to the app overview. Copy the Application (client) ID and the Directory (tenant) ID — you will need both when configuring SOC Anywhere.

Application (client) ID and Directory (tenant) ID in the app overview

Step 2: Create a Client Secret

  1. In your new app registration, go to Certificates & secrets.
  2. Under Client secrets, click New client secret.
  3. Add a description (e.g. SOC Anywhere) and choose an expiry period.
  4. Click Add.
  5. Copy the Value immediately — it will not be shown again after you navigate away.

⚠️ Copy the secret now: Azure only shows the secret value once. If you navigate away before copying it, you will need to delete it and create a new one.

Step 3: Grant API Permissions

SOC Anywhere needs read access to Microsoft Defender incidents via the Microsoft Graph API.

  1. Go to API permissions in your app registration.
  2. Click Add a permission.
  3. Select Microsoft Graph.
  4. Select Application permissions (not delegated).
  5. Search for and add the following permissions:
    • SecurityIncident.ReadWrite.All
    • SecurityAlert.ReadWrite.All
    • CustomDetectionsRead.All
  6. Click Add permissions.
  7. Click Grant admin consent for [your tenant] and confirm.
API permissions with admin consent granted in Microsoft Entra ID

💡 Admin consent required: Application permissions always require admin consent. The Grant admin consent button is only available to Global Administrators. If you do not see it, ask your Entra ID admin to grant consent.

After granting consent, all permissions should show a green tick under the Status column.

Troubleshooting

Insufficient privileges error

This means admin consent has not been granted for one or more permissions. Return to API permissions and check that all permissions show a green status tick. If any show a warning icon, click Grant admin consent again.

Invalid client secret

Client secrets expire. If your connection worked before but has stopped, your secret may have expired. Create a new secret in Certificates & secrets and update the value in SOC Anywhere Settings.