> For the complete documentation index, see [llms.txt](https://docs.docontrol.io/docontrol-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docontrol.io/docontrol-user-guide/system-management/settings/single-sign-on-sso/entra-id-sso.md).

# Entra ID SSO

Microsoft Entra ID (previously Azure AD) is a Microsoft identity solution that’s used to secure and manage millions of apps with single sign-on (SSO).

Using Entra ID as an SSO significantly reduces the risk of access credentials being lost or stolen, ensuring optimal security when logging into DoControl.

To integrate DoControl with Microsoft Entra ID, you need to:

* [Create an Entra ID connection](#create-entra-id-connection)
* [Configure SAML connection](#configure-saml-connection)
* [Add a generic SAML connection](#add-generic-saml-connection)

{% hint style="info" %}
After you configure Microsoft Entra ID, you can use your Entra ID credentials to login via DoControl. Note that DoControl supports only service provider initiated SSO via DoControl's login page.
{% endhint %}

## Create Entra ID connection

1. Login to your Microsoft Entra admin center - <https://entra.microsoft.com/>
2. Navigate to **Entra services >** [**Enterprise applications**](https://entra.microsoft.com/#view/Microsoft_AAD_IAM/StartboardApplicationsMenuBlade/~/AppAppsPreview).<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FtNfIbg4m6Isj5IZxBvOe%2FEntra1.png?alt=media&amp;token=1b9f0c0d-d5a6-4f63-a0cd-51151403ba84" alt=""><figcaption></figcaption></figure>
3. Click **New application**.<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FA0HAigzdI7XwFz7u0jRE%2FEntra2.png?alt=media&amp;token=54dd7c29-2c5d-47b2-9d96-9bd128cb0899" alt=""><figcaption></figcaption></figure>
4. Click **Create your own application**.<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2F7Mu0beuFQVyS2mX6C0AW%2FEntra3.png?alt=media&amp;token=f8363c07-1df4-41dd-a42f-28f23741f602" alt=""><figcaption></figcaption></figure>
5. Enter a name for your new app.\
   Make sure you select **Integrate any other application you don’t find in the gallery (Non-gallery)**.
6. Click **Create**.\
   When the application Overview page displays, the application is created.<br>

   <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FrNuQzzPTnkebYpcyxfKK%2FEntra4.png?alt=media&amp;token=fee7dae6-a354-45d4-8b05-f70d5015966d" alt="" width="563"><figcaption></figcaption></figure></div>
7. Click **Assign users and groups**.<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FvoY8syO2w7xcIw6PRD9S%2FAzure%20SSO5.png?alt=media&amp;token=bcae6207-bb49-46b6-bbf0-884823229575" alt=""><figcaption></figcaption></figure>
8. Click **+Add user/group >** **Users and groups (None selected)**.
9. Assign and add the relevant people or groups to connect DoControl with Microsoft Entra ID. Make sure that all listed people and groups exist in DoControl as team members. Indicate that user names are case-sensitive.<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FYfK6vpswjGMPaK003kEC%2FAzure%20SSO7.png?alt=media&amp;token=b15e35af-9b61-40a2-9956-a312276d2cb8" alt=""><figcaption></figcaption></figure>

## Configure SAML connection

Follow these procedures to set up your SAML connection in Microsoft Entra ID:

* [Basic SAML configuration](#basic-saml-configuration)
* [Attributes and claims](#attributes-and-claims)
* [SAML certificates](#saml-certificates)
* [Entra ID user properties](#entra-id-user-properties)

### Basic SAML configuration

1. In the left menu, click **Single sign-on** and select the **SAML** tile.
2. Go to **Set up Single Sign-On with SAML > section 1 - Basic SAML Configuration.**<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FzRM0OpaMh4QhccthKYGQ%2FAzure%20SSO8.png?alt=media&amp;token=8a8bc850-9135-4219-9738-5fc6380c4e71" alt=""><figcaption></figcaption></figure>
3. Enter the values listed below:

<table><thead><tr><th width="223">Parameter</th><th>Value</th></tr></thead><tbody><tr><td>Identifier (entity ID)</td><td><code>urn:amazon:cognito:sp:us-east-1_Tx9u9xQ4d</code></td></tr><tr><td>Reply URL (Assertion Consumer Service URL)</td><td><code>https://docontrol-main.auth.us-east-1.amazoncognito.com/saml2/idpresponse</code></td></tr><tr><td>Sign on URL (optional)</td><td><code>https://app.docontrol.io/login</code></td></tr></tbody></table>

### Attributes and claims

1. Go to **section 2 - Attributes & Claims.**
2. Make sure the Unique User Identifier (name ID) is: `user.userprincipalname`.<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FqOFBVE5knXLefpke2cFx%2FAzure%20attributes%20and%20claims.png?alt=media&amp;token=87b72341-28bc-47f4-b622-f15247493b17" alt=""><figcaption></figcaption></figure>
3. Under Additional claims, click **Edit** next to each claim.<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FH001uZBk2IfphNtkVHkI%2FAzure%20claim%20values.png?alt=media&amp;token=ee53c936-6172-4dd7-ade1-49e4206fd2c2" alt=""><figcaption></figcaption></figure>
4. Verify that the values for each additional claim are displayed as below:

<table><thead><tr><th width="205">Name</th><th>Namespace</th><th>Source attribute</th></tr></thead><tbody><tr><td>emailaddress</td><td>http://schemas.xmlsoap.org/ws/2005/05/identity/claims</td><td>user.userprincipalname</td></tr><tr><td>emailaddress</td><td>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress</td><td>user.mail</td></tr><tr><td>givenname</td><td>http://schemas.xmlsoap.org/ws/2005/05/identity/claims</td><td>user.givenname</td></tr><tr><td>surname</td><td>http://schemas.xmlsoap.org/ws/2005/05/identity/claims</td><td>user.surname</td></tr></tbody></table>

### SAML certificates

1. In **section 3 - SAML Certificates**, copy the `App Federation Metadata URL`.
2. Keep this for later when you add a new generic SAML connection in DoControl.<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FW1qVajghDsj1WwDXShS0%2FAzure%20SSO9.png?alt=media&amp;token=022c00f3-82a5-431f-95ea-10555a7781e8" alt=""><figcaption></figcaption></figure>

### Entra ID user properties

Verify that your Microsoft Entra ID user properties are populated:

<figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2Fr727Pw1WS7wtK9QDRw7f%2FAzure%20properties.png?alt=media&amp;token=f81b8c38-8b46-46e8-b35b-f604d61cbd58" alt=""><figcaption></figcaption></figure>

1. In Microsoft Entra ID, go to **User > Overview > Properties**.
2. Enter your first name and last name.
3. For the User principal name, enter your organization email. This email must be the same as the email you use to login to DoControl.

## Add generic SAML connection

SAML (Security Assertion Markup Language) 2.0 is an open standard that allows DoControl to connect to your organization's IdP, such as Entra ID.

SAML makes single sign-on (SSO) possible by authenticating a user once and then communicating that authentication to DoControl.

{% hint style="success" %}
To enable users to login to DoControl with their Entra ID credentials, follow the instructions to configure a [generic SAML](/docontrol-user-guide/system-management/settings/single-sign-on-sso/generic-saml.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docontrol.io/docontrol-user-guide/system-management/settings/single-sign-on-sso/entra-id-sso.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
