> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clarion.cantina.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# JumpCloud

> Connect JumpCloud to Clarion to ingest directory and identity events via Insights Rule webhooks and enable agent-driven investigation and response using a JumpCloud service account.

This guide explains how to connect JumpCloud to Clarion. Once configured, Clarion receives directory and identity events from JumpCloud Insights Rules through a webhook notification channel and can use a JumpCloud service account to investigate and respond to issues.

<Note>
  **Estimated time:** 10-15 minutes. You will need **JumpCloud Admin** access and access to the Clarion workspace where you want to connect JumpCloud.
</Note>

## Prerequisites

* Access to a JumpCloud organization with permission to manage Notification Channels, Insights Rules, and Service Accounts
* Access to the Clarion workspace where you want to configure the JumpCloud integration

## Create a webhook notification channel in JumpCloud

1. Sign in to the **JumpCloud Admin Portal**.
2. Open **Settings** and navigate to the **Notification Channels** tab.

<img src="https://mintcdn.com/cantinaclarion/Jq51LvIrgQJ0LQq4/images/jumpcloud/notification-channels.png?fit=max&auto=format&n=Jq51LvIrgQJ0LQq4&q=85&s=225442b55242ef3c78b6de36bc3f692e" alt="" width="3580" height="1580" data-path="images/jumpcloud/notification-channels.png" />

3. Select **Webhook** and click to add a new channel.

## Get the webhook URL and secret from Clarion

1. Open Clarion and go to **Integrations** > **JumpCloud**.

<img src="https://mintcdn.com/cantinaclarion/Jq51LvIrgQJ0LQq4/images/jumpcloud/clarion-integration-settings.png?fit=max&auto=format&n=Jq51LvIrgQJ0LQq4&q=85&s=a54ca9a6a0112038f7d0342245f8e7bf" alt="" width="2162" height="678" data-path="images/jumpcloud/clarion-integration-settings.png" />

2. Click **Connect** to generate a webhook URL and secret for this workspace.

<img src="https://mintcdn.com/cantinaclarion/Jq51LvIrgQJ0LQq4/images/jumpcloud/clarion-webhook-url.png?fit=max&auto=format&n=Jq51LvIrgQJ0LQq4&q=85&s=46e5bce2474af4b5a8fc23576f3cce3f" alt="" width="2360" height="1176" data-path="images/jumpcloud/clarion-webhook-url.png" />

3. Copy the **Webhook URL** and **Secret**. You will paste these into JumpCloud in the next step.

## Configure the webhook channel in JumpCloud

1. Return to the JumpCloud Notification Channel you started creating.
2. Enter a name for the channel, for example `Clarion`.
3. Paste the **Webhook URL** from Clarion into the URL field.
4. Set the authentication type to **Token** and paste the **Secret** from Clarion as the **Auth Token**.

<img src="https://mintcdn.com/cantinaclarion/Jq51LvIrgQJ0LQq4/images/jumpcloud/jumpcloud-webhook-form.png?fit=max&auto=format&n=Jq51LvIrgQJ0LQq4&q=85&s=c499a64ab8b7db231be231386421b201" alt="" width="3588" height="2632" data-path="images/jumpcloud/jumpcloud-webhook-form.png" />

5. You can use **Test Webhook** to send a sample payload to Clarion. An example payload looks like:

```json theme={null}
{
  "type": "user_lockout",
  "tags": [
    { "key": "user_id_123", "value": "user_123" },
    { "key": "event_type", "value": "lockout" }
  ],
  "channels": {
    "channel_object_ids": ["channel_456"]
  },
  "organization_object_id": "org_789"
}
```

6. When the test succeeds, save the webhook channel.

## Link the channel to Insights Rules

For each Insights Rule you want to forward to Clarion:

1. Open the rule in JumpCloud.
2. Under **Actions**, add the **Clarion** webhook channel as a notification channel.

<img src="https://mintcdn.com/cantinaclarion/Jq51LvIrgQJ0LQq4/images/jumpcloud/insights-rule-actions.png?fit=max&auto=format&n=Jq51LvIrgQJ0LQq4&q=85&s=cdd6bbb7a59f2159ec9d2c1c9fe37678" alt="" width="2870" height="972" data-path="images/jumpcloud/insights-rule-actions.png" />

3. Click **Save**.

Clarion now receives events from the rules you linked to the Clarion webhook channel.

## Create a JumpCloud service account for agent tools

Connecting a JumpCloud service account lets Clarion agents call the JumpCloud API to investigate issues and, optionally, remediate them.

1. In the JumpCloud Admin Portal, open **Settings** and select the **Service Accounts** tab.
2. Click **Create a new service account**.

<img src="https://mintcdn.com/cantinaclarion/Jq51LvIrgQJ0LQq4/images/jumpcloud/service-account-create.png?fit=max&auto=format&n=Jq51LvIrgQJ0LQq4&q=85&s=314d6ff12c9087145f5f8625eeef67f3" alt="" width="3594" height="2650" data-path="images/jumpcloud/service-account-create.png" />

3. Name the service account `Clarion` and select a role that matches the access you want Clarion to have. To allow Clarion to remediate issues, select the **Manager** role.

<img src="https://mintcdn.com/cantinaclarion/Jq51LvIrgQJ0LQq4/images/jumpcloud/service-account-role.png?fit=max&auto=format&n=Jq51LvIrgQJ0LQq4&q=85&s=16220bc2d439d454c75f8cd13fded4da" alt="" width="3082" height="1032" data-path="images/jumpcloud/service-account-role.png" />

4. Set the **Secret Lifetime** to **365 days**.
5. Copy the **Client ID** and **Client Secret** shown. The secret is only displayed once.

## Connect the service account in Clarion

1. In Clarion, open again the **Integrations** > **JumpCloud** integration page.
2. Paste the **Client ID** and **Client Secret** from JumpCloud.
3. Click **Save Service Account**.

Clarion can now use the JumpCloud API to support investigation and response actions on incoming issues.

## Troubleshooting

### Test webhook returns an authentication error

* Confirm the authentication type is set to **Token** in the JumpCloud webhook channel
* Confirm the **Auth Token** matches the secret shown in Clarion exactly, with no leading or trailing whitespace
* If the secret has been rotated, reconnect the integration in Clarion to generate a new secret and update the JumpCloud channel

### Issues are not arriving in Clarion

* Confirm the Clarion webhook channel is attached to each Insights Rule you want to forward
* Confirm the rule is enabled and has recently matched events in JumpCloud
* Re-run **Test Webhook** from JumpCloud to verify the channel still reaches Clarion

### Service account credentials are rejected

* Confirm the service account is active in the JumpCloud Admin Portal
* Confirm the role assigned to the service account includes the permissions required for the actions you want Clarion to perform
* If the client secret is lost or expired, generate a new secret in JumpCloud and save the new **Client ID** and **Client Secret** in Clarion
