> ## Documentation Index
> Fetch the complete documentation index at: https://specterops-bp-2395-ms-sentinel.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SAML: Entra ID Configuration

> This document provides instructions for creating an application within Entra ID for compatibility with BloodHound Enterprise.

export const IDPIntro = ({auth_mode}) => {
  const mode = (auth_mode || '').toUpperCase();
  const isOIDC = mode === 'OIDC';
  const href = isOIDC ? '/manage-bloodhound/auth/oidc' : '/manage-bloodhound/auth/saml';
  const label = isOIDC ? 'OIDC' : 'SAML';
  return <Tip>
      See <a href={href}>{label} in BloodHound</a> for order of operations, general {label} setup, and user configuration in BloodHound.
    </Tip>;
};

<img noZoom src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/VEB72RaJ_O3Ic1SS/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max&auto=format&n=VEB72RaJ_O3Ic1SS&q=85&s=dee06d9e0f3f5a176505b6725aedfb7c" alt="Applies to BloodHound Enterprise and CE" width="482" height="45" data-path="assets/enterprise-AND-community-edition-pill-tag.svg" />

<IDPIntro auth_mode="SAML" />

## Create an Enterprise Application

1. Login to Azure at [https://portal.azure.com](https://portal.azure.com)
2. Navigate to the **Enterprise Applications** section of Entra ID.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-44.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=84f3d33a2434ba2f78d0b250c9300863" width="430" height="207" data-path="assets/image-2-44.png" />
</Frame>

3. Click **New Application**.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-46.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=01693878d9376475e87d482319e2058c" width="564" height="171" data-path="assets/image-2-46.png" />
</Frame>

4. Click **Create your own application**.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-47.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=a433e2e89b814e84cf72276c97d36dc6" width="484" height="231" data-path="assets/image-2-47.png" />
</Frame>

5. Provide a name for your application and click **Create**.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-48.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=b34a05b2d3d8fc16a0c7f9294cd2c683" width="573" height="850" data-path="assets/image-2-48.png" />
</Frame>

## Configure Single Sign-On Settings

1. Your browser should redirect you to your newly created application. Click on **Single sign-on**.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-49.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=68b83cc0ee3f0f266e8b3e109591af19" width="406" height="498" data-path="assets/image-2-49.png" />
</Frame>

2. Click on **SAML**.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-50.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=bd9a0356cbc369d26725a9dbd62785db" width="370" height="199" data-path="assets/image-2-50.png" />
</Frame>

3. Click **Edit** under the Basic SAML Configuration section.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-51.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=48fad9b55e2d79fb382c7dc342ebba68" width="760" height="226" data-path="assets/image-2-51.png" />
</Frame>

4. Configure SAML. The following screenshot shows the tenant codename is "demo" and the provider name is "entra".

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-52.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=3550bae1decb7c39eed2d3957f611542" width="793" height="651" data-path="assets/image-2-52.png" />
</Frame>

5. Azure will inform you the settings have saved successfully.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-53.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=bc943d5bb073016dd3b0208487ba4443" width="358" height="77" data-path="assets/image-2-53.png" />
</Frame>

6. Click the **X** to close the dialog.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-54.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=1162b23b44a60a674d864a4a3111c50c" width="859" height="250" data-path="assets/image-2-54.png" />
</Frame>

7. Scroll down to the **SAML Certificates** section and download the **Metadata XML**.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-55.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=32ad1b5e53675cfcace2cfdc78decb16" width="765" height="408" data-path="assets/image-2-55.png" />
</Frame>

8. Use the **Users and Groups** section to configure groups and users which you would like to grant access to BloodHound Enterprise.

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-56.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=9476b336416ef8e48f2fb592900b0da1" width="436" height="371" data-path="assets/image-2-56.png" />
</Frame>

9. Use the downloaded metadata.xml file and follow the instructions at [SAML in BloodHound Enterprise](/manage-bloodhound/auth/saml) to Create the SAML Configuration in BloodHound.

## Troubleshooting

Verify your attributes and claims use a proper schema in the claim name, and that you have a properly mapped claim for "user.mail" as in the example below. An indicator that this is necessary is when an authentication attempt returns the response: "*assertion does not meet requirements for user lookup*".

<Frame>
  <img src="https://mintcdn.com/specterops-bp-2395-ms-sentinel/n4mWtH9pK6jacZAG/assets/image-2-57.png?fit=max&auto=format&n=n4mWtH9pK6jacZAG&q=85&s=0ea4ff49c44d6cdc23e73ce5cb80c5d8" width="1075" height="988" data-path="assets/image-2-57.png" />
</Frame>
