New announcements for Serverless, Network, RUM, and more from Dash! New announcements from Dash!

Single Sign On With SAML

This documentation assumes that you already have a SAML Identity Provider up and running.

Configuring SAML (Security Assertion Markup Language) for your Datadog account lets you and all your teammates log in to Datadog using the credentials stored in your organization’s Active Directory, LDAP, or other identity store that has been configured with a SAML Identity Provider.

Note: If you don’t have SAML enabled on your Datadog account, reach out to support to enable it.

Here’s a two-minute video walkthrough:

Configure SAML

If you are a Datadog Administrator, there is a Configure SAML option in the drop down menu that is accessed by hovering over your username in the left-side navigation menu.

This brings you to the SAML Single Sign On Configuration page:

  1. Upload the IdP Metadata from your SAML Identity provider by clicking the Choose File button.

    After choosing the file, click Upload File.

  2. Download Datadog’s Service Provider metadata to configure your IdP to recognize Datadog as a Service Provider.

  3. After you upload the IdP Meta-data and configure your IdP, enable SAML in Datadog by clicking the Enable button.

Once SAML is configured in Datadog and your IdP is set up to accept requests from Datadog, users can log in by using the Single Sign-on URL shown in the Status box at the top of the SAML Configuration page.

The Single Sign-on URL is also displayed on the Team page. Loading this URL initiates a SAML authentication against your IdP. Note: This URL isn’t displayed until SAML is enabled for your account.

Note: If you want to configure SAML for a multi-org, see the multi-org documentation.

Datadog Service Provider Details

  • Datadog supports the HTTP-POST binding for SAML2: urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST.
  • Datadog specifies urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress for the format of the NameIDPolicy in assertion requests.
  • Assertions must be signed.
  • Assertions can be encrypted, but unencrypted assertions are accepted.
  • Reference Datadog’s SP Metadata.

Setting Attributes

Attributes may be included with the Assertion. Datadog looks for 3 Attributes in the AttributeStatement:

  1. eduPersonPrincipalName: If specified, the eduPersonPrincipalName must correspond to the user’s Datadog username. The username is typically the user’s email address.
  2. sn: This is optional, and should be set to the user’s surname.
  3. givenName: This is optional, and should be set to the user’s first, or given name.

Datadog expects that Attributes use the URI NameFormat urn:oasis:names:tc:SAML:2.0:attrname-format:uri or the Basic NameFormat urn:oasis:names:tc:SAML:2.0:attrname-format:basic. The name used for each attribute depends on the NameFormat that your IdP uses.

If your IdP is configured to use the URI NameFormat urn:oasis:names:tc:SAML:2.0:attrname-format:uri:

  1. eduPersonPrincipalName: The IdP should set urn:oid:1.3.6.1.4.1.5923.1.1.1.6 as the name of the attribute.
  2. sn: The IdP should set urn:oid:2.5.4.4 as the name of the attribute.
  3. givenName: The IdP should set urn:oid:2.5.4.42 as the name of the attribute.

If your IdP is configured to use the Basic NameFormat urn:oasis:names:tc:SAML:2.0:attrname-format:basic:

  1. eduPersonPrincipalName: The IdP should set urn:mace:dir:attribute-def:eduPersonPrincipalName as the name of the attribute.
  2. sn: The IdP should set urn:mace:dir:attribute-def:sn as the name of the attribute.
  3. givenName: The IdP should set urn:mace:dir:attribute-def:givenName as the name of the attribute.

If eduPersonPrincipalName exists in the AttributeStatement, the value of this attribute is used for the username. If eduPersonPrincipalName is not included in the AttributeStatement, the username is taken from the NameID in the Subject. The NameID must use the Format urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress.

If sn and givenName are provided, they are used to update the user’s name in their Datadog profile.

Specific SAML IdP

For more information about configuring specific IdP’s, refer to the following documentation:

Additional Features

The following features can be enabled through the SAML Configuration dialog.

Just-in-Time (JIT) Provisioning

With Just-in-Time provisioning, a user is created within Datadog the first time they try to log in. This eliminates the need for administrators to manually create user accounts one at a time.

Some organizations might not want to invite all of their users to Datadog. If you would like to make changes to how SAML works for your account, contact Datadog support. It is up to the organization to configure their IdP to not send assertions to Datadog if they don’t want a particular user to access Datadog.

Administrators can set the default role for new Just-in-Time users. The default role is Standard, but you can choose to add new JIT users as Read-Only or even Administrators.

IdP Initiated Login

When the Datadog URL is loaded, the browser is redirected to the customer IdP where the user enters their credentials, then the IdP redirects back to Datadog. Some IdPs have the ability to send an assertion directly to Datadog without first getting an AuthnRequest (IdP Initiated Login).

After enabling the IdP Initiated Login feature (and waiting for caches to clear), you need to get a new version of the SP Metadata. Your new SP Metadata contains a different, organization-specific AssertionConsumerService endpoint to send assertions to.

If you do not use the updated SP Metadata, Datadog is not able to associate the assertion with your organization and displays an error page with a message that the SAML response is missing the “InResponseTo” attribute.

SAML Strict

With SAML Strict mode enabled, all users must log in with SAML. An existing username/password or Google OAuth login does not work. This ensures that all users with access to Datadog must have valid credentials in your company’s identity provider/directory service to access your Datadog account.

Further Reading

Additional helpful documentation, links, and articles: