> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devinenterprise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Entra ID SSO Setup

> Set up Microsoft Entra ID single sign-on for Devin: register an application, create a client secret, and connect it to your Devin account.

> [!NOTE]
>
> Click on any image to enlarge it.

## Required Information

To enable Microsoft Entra ID login for Devin, you will need the following values:

* Client ID
* Tenant ID
* Client Secret
* Microsoft AD Domain
* Identity Provider Domains (i.e. all company email domains you'd like to support)

## Setup Instructions

To get the required information above, you will need to register an App Registration in Microsoft Entra ID.

> [!NOTE]
>
> The App Registration should be created by an admin in your organization with the **Application Administrator** or **Cloud Application Administrator** role. The Devin service account does not need any special privileges for this setup.

In the Microsoft Entra ID portal, click on Add registration

![Entra ID Registration](https://mintcdn.com/cognitionai-enterprise/DmYrokVm9aKGrUsO/images/azureAD1.png?fit=max\&auto=format\&n=DmYrokVm9aKGrUsO\&q=85\&s=d7234bf5a3c9fbba87144d2365222989)

Name the registration Devin AI. Select "Accounts in this organizational directory only". Set the Redirect URI as "[https://auth.devin.ai/login/callback](https://auth.devin.ai/login/callback)" (this is the only Redirect URI needed)

![Entra ID App Settings](https://mintcdn.com/cognitionai-enterprise/DmYrokVm9aKGrUsO/images/azureAD2.png?fit=max\&auto=format\&n=DmYrokVm9aKGrUsO\&q=85\&s=285192fc843a9cab079596fa8d926c71)

Add the User.Read and Directory.Read.All permissions by selecting "API Permissions" and "Add a permission" to the Microsoft Graph API.

![Entra ID API Permissions](https://mintcdn.com/cognitionai-enterprise/DmYrokVm9aKGrUsO/images/azureAD5.png?fit=max\&auto=format\&n=DmYrokVm9aKGrUsO\&q=85\&s=31525563b21a20158bfe8f6568819f25)

![Entra ID Graph Permissions](https://mintcdn.com/cognitionai-enterprise/DmYrokVm9aKGrUsO/images/azureAD6.png?fit=max\&auto=format\&n=DmYrokVm9aKGrUsO\&q=85\&s=94c7f690b37dc19501b5af6dac7a146c)

After adding the permissions, click "Grant admin consent for \[your organization]" on the same API Permissions page and confirm. Both permissions should show a green "Granted" status. Directory.Read.All requires admin consent; without this step, users can still sign in, but Devin cannot read their Entra groups, so IdP group-based organization mapping will not work.

## Collecting the Required Values

You can get the Client ID and Tenant ID from the Overview page.

![Entra ID Overview Page](https://mintcdn.com/cognitionai-enterprise/DmYrokVm9aKGrUsO/images/azureAD7.png?fit=max\&auto=format\&n=DmYrokVm9aKGrUsO\&q=85\&s=66f787fc382bf359a099a9af5a94a558)

The Microsoft AD Domain can be found by selecting the "Manifest" page and looking for "publisherDomain"

![Entra ID Manifest](https://mintcdn.com/cognitionai-enterprise/DmYrokVm9aKGrUsO/images/azureAD8.png?fit=max\&auto=format\&n=DmYrokVm9aKGrUsO\&q=85\&s=00103842106a2ee761dc52ea09a6c60a)

Add a client secret by selecting "Certificates & secrets." Select "New client secret" and copy the secret VALUE (not the secret ID) as Client Secret

![Entra ID Client Secret](https://mintcdn.com/cognitionai-enterprise/DmYrokVm9aKGrUsO/images/azureAD9.png?fit=max\&auto=format\&n=DmYrokVm9aKGrUsO\&q=85\&s=d7071ba8ecc5f574ea02a40e1821f8ec)

## Connect the Application to Devin

Collect the following information to add the connection:

1. **Client ID**
2. **Client secret**
3. **Tenant ID** or **Microsoft AD Domain** (either one goes in the **Entra tenant** field)
4. **Email domains** (all company email domains you'd like to support)

[Verify your email domains and add a **Microsoft Entra ID** connection](https://docs.devinenterprise.com/enterprise/security-access/sso/guide.md#connecting-it-to-devin) with these values under **Settings → Authentication**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.