> For the complete documentation index, see [llms.txt](https://herd-security.gitbook.io/herd-security-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/microsoft-fabric.md). Agents can also search and read this documentation through its [MCP server](https://herd-security.gitbook.io/herd-security-docs/~gitbook/mcp).

# Connect Microsoft Fabric

Let Herd read a remediation-targets table or view from your Microsoft Fabric SQL analytics endpoint and treat each row as a human-risk signal that can raise a person's risk score and assign training.

If your security team keeps a "who needs remediation" list in Microsoft Fabric, Herd can read it directly. You expose one table or view on a Lakehouse or Warehouse SQL analytics endpoint. Herd reads it on a schedule and handles each row as a human-risk signal for the person it names. A row can raise that person's risk score and assign them a corrective training, the same as an alert sent through the [SIEM / DLP webhook](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/siem-dlp-webhooks.md).

***

## What you need

* A Fabric Lakehouse or Warehouse with a table or view that lists the people who need remediation.
* An Entra app registration (a service principal) in the tenant that owns the Fabric workspace, with a client secret.
* Read access for that app on the one targets table or view. Herd needs nothing wider, and the only query it runs is a read of that table.
* In Herd, the **integrations** permission.

***

## 1. Prepare the table or view

Herd reads up to 1,000 rows each time with a plain `SELECT TOP (1000) *` on the table or view you name, and every row is looked at on every pull. Use a view to filter the list down to people who currently need remediation.

Herd recognizes these columns, in this order, using the first one that has a value:

| Herd needs                   | Columns checked                                                                                                                                        |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| The person (required)        | `user_email`, `userEmail`, `email`, `user_principal_name`, `userPrincipalName`, `upn`, `mail`, `user`                                                  |
| Needs remediation (optional) | `needs_remediation`, `needsRemediation`, `remediation_required`, `remediationRequired`                                                                 |
| Alert type                   | `alert_type`, `alertType`, `reason`, `finding`, `rule_name`, `category`                                                                                |
| Description                  | `description`, `details`, `reason`, `finding`                                                                                                          |
| Event ID                     | `event_id`, `eventId`, `target_id`, `targetId`, `id`                                                                                                   |
| When it was flagged          | `occurred_at`, `occurredAt`, `flagged_at`, `flaggedAt`, `detected_at`, `detectedAt`, `event_time`, `eventTime`, `timestamp`, `created_at`, `createdAt` |
| Severity                     | `severity`, `Severity`, `priority`                                                                                                                     |

* If a needs-remediation column exists, rows where it reads `false`, `no`, `n`, `0` or empty are skipped. If there is no such column, every row counts, so the view itself is the filter.
* Severity is read as `critical`, `high` or `medium`. Anything else, including a missing value, counts as low.
* If a row has no alert type, Herd uses `remediation_required`.
* If a row has no event ID, Herd builds a stable one, so reading the same row on every pull never counts it twice.
* Rows whose person column isn't an email address are skipped.

Herd keeps the other columns of each ingested row alongside the event.

***

## 2. Connect in Herd

1. In **Settings → Integrations**, open **Microsoft Fabric** (in the **Security & SIEM** section).
2. Fill in the form under **Fabric Configuration Settings**:
   * **Entra Tenant ID**: the directory (tenant) ID of the Entra tenant that owns your Fabric workspace. It must be a GUID.
   * **Client ID**: the application (client) ID of the app registration. It must be a GUID.
   * **Client Secret**: the app registration's secret.
   * **SQL Endpoint**: the SQL analytics endpoint of your Lakehouse or Warehouse, as a bare host name such as `xxxxxxxx.datawarehouse.fabric.microsoft.com`. Leave out the scheme, port and path. You find it in the Fabric item's settings under **SQL analytics endpoint**.
   * **Database**: the Lakehouse or Warehouse name.
   * **Targets Table or View**: the table or view from step 1, such as `dbo.remediation_targets`. It takes one to three dot-separated plain names.
3. Select **Save Fabric Configuration**.
4. Select **Test connection**. Herd signs in with the app registration and reports whether that worked.

Herd stores the secret encrypted and never shows it again. When you edit the settings later, leave the secret as it is to keep the current one. If you change the **SQL Endpoint**, Herd asks you to enter the secret again, so a saved secret can't be used against a different address.

{% hint style="info" %}
**Test connection** proves only that the app registration can sign in. It doesn't read your table. Access to the table is proved by the first sync, so select **Sync now** and check the result.
{% endhint %}

Herd connects to the SQL endpoint on port 1433 and doesn't accept an address on a private network.

***

## 3. Decide which rows count

A row raises the person's risk score. It assigns training only when its alert type is mapped.

In **Settings → Integrations → SIEM & DLP Webhooks**, add an alert mapping for each alert type you want to act on. Set **Source** to `microsoft_fabric` so the mapping applies only to rows from Fabric, or leave it empty to also match the same alert type from other sources. See [Alert-to-training mappings](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/siem-dlp-webhooks.md#alert-to-training-mappings).

***

## How often Herd pulls

Every two hours, Herd reads the table or view and handles the rows it hasn't seen. Select **Sync now** on the card to pull straight away. The card shows **Last successful pull** and the endpoint, database and table in use.

Herd reads the first 1,000 rows each time, so keep the view under that.

If Fabric or Entra refuses the app registration (a changed secret, an expired secret or a missing table permission), the card says so and Herd waits a week before trying again on its own. Fix it, save the new secret if you made one, and select **Sync now**.

***

## Who each row is about

Herd matches the email address in the row to the person with that address in Herd. A row with an address that doesn't match anyone in Herd assigns nothing. Herd logs it for audit with the note "User not found in organization".

***

## Stop pulling

Select **Disconnect** on the card and confirm. Herd stops pulling remediation targets and deletes the stored client secret. Rows already pulled stay, along with the risk events and trainings they produced. To reconnect, enter a new client secret and save. You can also remove the app registration's access to the table, or delete its client secret in Entra.
