> ## Documentation Index
> Fetch the complete documentation index at: https://specterops-bed-7559-api-key-exp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SAML: ADFS Configuration

> This document provides instructions for creating an application within ADFS 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-bed-7559-api-key-exp/Q9Jppg_Pu54SydxZ/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max&auto=format&n=Q9Jppg_Pu54SydxZ&q=85&s=dab889e863a05e09b1378befc30bbb10" 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 Application

1. In the AD FS management console, right-click on Relaying Party Trust and click “Add Relaying Party Trust”.

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-25.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=2af9742d9b0c2a3fb22106dfa472f5de" width="936" height="478" data-path="assets/image-2-25.png" />
</Frame>

2. Choose “Claims aware” and click “Start”.

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-26.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=7c48df1d96f4e351073da675b6a07604" width="936" height="762" data-path="assets/image-2-26.png" />
</Frame>

3. Insert the metadata URL based on your chosen name and click “Next.”

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-27.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=574d100a84aff68e1b4ca94897d8c53f" width="936" height="762" data-path="assets/image-2-27.png" />
</Frame>

4. Enter the preferred display name and click “Next.”

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-28.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=e101c23f6007fa880da9214fdce575b5" width="936" height="762" data-path="assets/image-2-28.png" />
</Frame>

5. Choose the desired Access Control Policy. (Note that access and permissions are configured within BloodHound Enterprise).

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-29.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=828c9fb19c7ca68202711030861bad21" width="936" height="762" data-path="assets/image-2-29.png" />
</Frame>

6. Review the information presented and click “Next”.

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-30.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=330b3aedad0f26930ce7fc1c3a67264e" width="936" height="762" data-path="assets/image-2-30.png" />
</Frame>

7. Leave the “Configure claims issuance policy for this application” box checked and click “Close”.

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-31.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=66dc51f388a9b13ae3a7052c5a2267c3" width="936" height="762" data-path="assets/image-2-31.png" />
</Frame>

## Complete SAML Integration Configuration

1. On the “Edit Claim Issuance Policy” dialog box, click “Add Rule…”.

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-32.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=00d33cd56326aff506f4886500f174d4" width="936" height="1046" data-path="assets/image-2-32.png" />
</Frame>

2. Choose “Send LDAP Attributes as Claims” and click “Next.

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-33.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=5a9edbfef59082e69735d8df81cd44e8" width="936" height="762" data-path="assets/image-2-33.png" />
</Frame>

3. Fill out the following and click “Finish”.

   LDAP Attribute: E-Mail-Addresses
   Outgoing Claim Type : E-Mail Address

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-34.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=358580885ae4d90208251fc8324f05bd" width="936" height="762" data-path="assets/image-2-34.png" />
</Frame>

4. Click “Add Rule” to add another claim rule.

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-35.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=04fbeb1b897f7bb0bc736a4a3be296e3" width="936" height="1046" data-path="assets/image-2-35.png" />
</Frame>

5. Choose “Transform and Incoming Claim” and click “Next”.

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-36.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=76a31380086153c2a13355daa2699e69" width="936" height="762" data-path="assets/image-2-36.png" />
</Frame>

6. Fill out the following and click “Finish”.

   Incoming claim type: E-Mail Address
   Outgoing claim type: Name ID
   Outgoing name ID format: Email
   Choose “Pass through all claim values”

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-37.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=005b447f58bc4ddd3582aed2a4f44a9d" width="936" height="762" data-path="assets/image-2-37.png" />
</Frame>

7. Click “Apply”.

<Frame>
  <img src="https://mintcdn.com/specterops-bed-7559-api-key-exp/822eouQ8h3kcvEH5/assets/image-2-38.png?fit=max&auto=format&n=822eouQ8h3kcvEH5&q=85&s=273da2e801266239fbeee5c739350e59" width="936" height="1046" data-path="assets/image-2-38.png" />
</Frame>

8. Download the metadata file provided by your ADFS environment. By default, this is hosted at: [https://YOURDOMAIN/federationmetadata/2007-06/federationmetadata.xml](https://YOURDOMAIN/federationmetadata/2007-06/federationmetadata.xml)
9. Follow the instructions at [SAML in BloodHound Enterprise](/manage-bloodhound/auth/saml) to create the SAML provider in BloodHound Enterprise.
