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

# Datadog

> Connect Datadog with an API key and scoped Application key to sync and provision users and roles, suspend users, and track last login, with no read-only option.

*This article covers the current **Datadog** connector: connections created after July 2025, where the Domain ID under your Lumos domain shows `datadog_ics`. If your Domain ID shows `datadoghq.com`, you're on the legacy connector that also ships Lumos Activity Logs to Datadog SIEM. See [Datadog SIEM](https://docs.lumos.com/integrations/library/datadog/datadog-siem.md). Both use the same credentials and scopes.*

## After this article

You will be able to connect Datadog to Lumos to sync users and roles, provision and deprovision user access, manage role assignments, and track last login activity.

## Capabilities

| Functionality | Type | Sync | Provision | Description |
| - | - | - | - | - |
| Users | Account | Yes | Yes | User accounts |
| Roles | Permission | Yes | Yes | Role definitions and role membership |

| Deprovisioning Action | Type | Description |
| - | - | - |
| Deactivate (Suspend) | User | Disables the user in Datadog and prevents login |

Activity tracking is supported: the integration syncs each user's last login (via Datadog audit log search).

User status mapping: Datadog `active` → Lumos **Active**. `disabled` → **Suspended**. A user no longer returned by Datadog (`deleted`) → **Deprovisioned**. Suspending a user doesn't reclaim a Datadog license.

## Required plan and roles

* **Datadog plan:** at least the **Datadog Pro** plan is required.
* **Credentials:** a Datadog **API key** plus an **Application key** created with the minimum required scopes.
* **Application key scopes** (all three required):
  * `user_access_manage`: disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries
  * `org_management`: view organizational information
  * `user_access_read`: read user and role data
* **Permission scoping:** this integration requires write privileges. There's **no read-only version**. Write operations require `user_access_manage` (or `user_access_invite`).
* **Key inheritance:** Application keys inherit permissions from the user who creates them, so the creating user must hold all required scopes and their account must remain active.

## Instructions

**Phase 1: Create keys in Datadog**

1. Generate an **API key** and temporarily save it.
2. Generate a new **Application key** with the minimum required scopes listed above and temporarily save it.

**Phase 2: Connect in Lumos**

1. Find the Datadog card in your Lumos integrations (reconnect an existing card or add a new one).
2. Enter the API key into the **API Key** field.
3. Enter the Application key into the **Application Key** field.
4. Select the **Region** of your Datadog tenant. The API base URL varies by Datadog site, so this must match where your organization is hosted.
5. Click **Connect**.

## API Endpoints Used

> [!NOTE]
>
> The API endpoints this integration uses are available to logged-in Lumos customers. Log in to view them.

## Troubleshooting

**Can't connect.** Make sure you've selected the correct region for your tenant, and that your key has at least the `user_access_manage` scope tied to it (plus `org_management` and `user_access_read`).

**403 Forbidden errors.** Application keys inherit permissions from their creator. Verify which Datadog user created the Application key, confirm that user still has all required scopes, and check their account is still active (not deactivated). If not, grant the needed scopes to that user or regenerate the Application key from an account with sufficient privileges.

**Suspended user still consumes a license.** Expected: disabling a user in Datadog prevents login but doesn't reclaim the license in Datadog.

**Last-login sync returns a 410 Gone on audit search.** The audit resource or query window is no longer available for that request. This surfaces as a client-side error rather than a connector failure, and later syncs recover on their own.
