---
title: Okta SAML Identity Provider Configuration
description: >-
  Set up Okta as a SAML identity provider for Datadog with IdP and SP-initiated
  SSO, JIT provisioning, and role mapping configuration.
breadcrumbs: >-
  Docs > Account Management > Single Sign On With SAML > Okta SAML Identity
  Provider Configuration
---

# Okta SAML Identity Provider Configuration

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com

{% alert level="danger" %}
In the  site, you must manually configure the Datadog application in Okta using the [legacy instructions](https://docs.datadoghq.com/account_management/faq/okta.md). Ignore the instructions on this page about the preconfigured Datadog application in the Okta application catalog.
{% /alert %}

{% /callout %}

## Overview{% #overview %}

This page tells you how to set up the Datadog application in Okta.

Before proceeding, make sure that you are using the latest version of the Datadog application:

1. In Okta, click Applications.
1. Open the Datadog application.
1. Select the General tab.
1. Look for a field labeled SSO Base URL.

{% image
   source="https://docs.dd-static.net/images/account_management/saml/okta/sso_base_url.e3166de07a2b9af163f5d81adf77e69e.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/account_management/saml/okta/sso_base_url.e3166de07a2b9af163f5d81adf77e69e.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Datadog application configuration in Okta, highlighting the SSO base URL" /%}

If you don't see the SSO Base URL field, configure Okta using the [legacy instructions](https://docs.datadoghq.com/account_management/faq/okta.md).

## Supported features{% #supported-features %}

The Datadog Okta SAML integration supports the following:

- IdP-initiated SSO
- SP-initiated SSO
- JIT provisioning

For definitions of the terms above, see the Okta [glossary](https://help.okta.com/en/prod/Content/Topics/Reference/glossary.htm).

## Setup{% #setup %}

Set up Okta as the SAML identity provider (IdP) for Datadog with the following instructions. The setup process requires you to alternate between your Okta and Datadog accounts.

### Add the Datadog integration in Okta{% #add-the-datadog-integration-in-okta %}

1. Log in to your Okta admin dashboard.
1. In the left navigation, click Applications.
1. Click Browse App Catalog.
1. Use the search bar to search for "Datadog".
1. Select the Datadog app for SAML and SCIM.
1. Click Add Integration. The General Settings dialog appears.
1. Populate the SSO Base URL field with your [Datadog website URL](https://docs.datadoghq.com/getting_started/site.md#access-the-datadog-site).
1. Click Done.

**Note:** The SSO Base URL field accepts custom subdomains if you are not using a standard Datadog website URL.

Next, download the metadata details to upload to Datadog:

1. While in the settings dialog for the Datadog application in Okta, click the Sign on tab.
1. Scroll down until you see the Metadata URL.
1. Click Copy.
1. Open a new browser tab and paste the metadata URL into the address bar.
1. Use your browser to save the content of the metadata URL as an XML file.

{% image
   source="https://docs.dd-static.net/images/account_management/saml/okta/metadata_url.d2b85ff3ec2f5a442fd75c07959cd697.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/account_management/saml/okta/metadata_url.d2b85ff3ec2f5a442fd75c07959cd697.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Sign on configuration in Okta" /%}

### Configure Datadog{% #configure-datadog %}

#### Upload metadata details{% #upload-metadata-details %}

1. Navigate to [Login Methods](https://app.datadoghq.com/organization-settings/login-methods) under Organization Settings.
1. In the SAML component, click Configure or Update, depending on whether you have previously configured SAML. The SAML configuration page appears.
1. Click Choose File, and select the metadata file you previously downloaded from Okta.

{% image
   source="https://docs.dd-static.net/images/account_management/saml/okta/choose_file.3ceadfede8ee07898b5f9912208dff9b.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/account_management/saml/okta/choose_file.3ceadfede8ee07898b5f9912208dff9b.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="SAML configuration in Datadog, highlighting metadata upload button" /%}

#### Activate IdP initiated login{% #activate-idp-initiated-login %}

For the Datadog application to function correctly, you must activate IdP initiated login.

{% alert level="info" %}
After you activate IdP initiated login, users can log in to Datadog from Okta
{% /alert %}

To activate IdP initiated login, execute the following steps:

1. Navigate to the [SAML configuration page](https://app.datadoghq.com/organization-settings/login-methods/saml).
1. Under Additional Features, click the checkbox for Identity Provider (IdP) Initiated Login. The component displays the Assertion Consumer Service URL.
1. The content in the Assertion Consumer Service URL after `/saml/assertion` is your company ID. Enter this value with the `/id/` prefix in Okta to finalize your configuration.
1. Click Save Changes.

{% image
   source="https://docs.dd-static.net/images/account_management/saml/okta/company_id.29c94bfacd0554169be52793cdae1edb.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/account_management/saml/okta/company_id.29c94bfacd0554169be52793cdae1edb.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="SAML configuration in Datadog, highlighting the company ID portion of the assertion consumer service URL" /%}

Return to Okta for the next set of configuration steps.

### Add the company ID in Okta{% #add-the-company-id-in-okta %}

1. Return to the Okta admin dashboard.
1. Select the Sign on tab.
1. Click Edit.
1. Scroll down to the Advanced Sign-on Settings section.
1. Paste your full company ID including the `/id/` prefix into the Company ID field (`/id/XXXXXX-XXXX-XXX-XXXX-XXXXXXX`).
1. Click Save.

## Service Provider (SP) initiated login{% #service-provider-sp-initiated-login %}

To log in to Datadog using service provider-initiated login (SP-initiated SSO), you need the single sign-on (SSO) URL. You can find your SSO URL in two ways: on the SAML configuration page, or through email.

### SAML configuration page{% #saml-configuration-page %}

The Datadog [SAML configuration page](https://app.datadoghq.com/organization-settings/login-methods/saml) displays the SSO URL next to the Single Sign-on URL heading.

### Email{% #email %}

1. Navigate to the Datadog website URL for your organization.
1. Select Using Single Sign-On?.
1. Enter your email address, and click Next.
1. Check your email for a message containing the SSO URL, listed as Login URL.

After you find your SSO URL from either method, bookmark it for future reference.

## SAML role mapping{% #saml-role-mapping %}

Follow the steps below to map Okta attributes to Datadog entities. This step is optional.

1. Navigate to the Okta admin dashboard.
1. Select the Sign on tab.
1. Click Edit.
1. Populate the Attributes with your [group attribute statements](https://docs.datadoghq.com/account_management/faq/okta.md#group-attribute-statements-optional).
1. Set up your desired [mappings](https://docs.datadoghq.com/account_management/saml/mapping.md) in Datadog.

## Further Reading{% #further-reading %}

- [Configure SAML for your Datadog account](https://docs.datadoghq.com/account_management/saml.md)
- [Configuring Teams & Organizations with Multiple Accounts](https://docs.datadoghq.com/account_management/multi_organization.md)
