> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/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/SST7qBOGO28X2sVc/images/azureAD1.png?fit=max\&auto=format\&n=SST7qBOGO28X2sVc\&q=85\&s=4b3b1a94f2e34a07244adec63c255853)

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/SST7qBOGO28X2sVc/images/azureAD2.png?fit=max\&auto=format\&n=SST7qBOGO28X2sVc\&q=85\&s=83e7fc736cb85c79bd2a5e65b4145357)

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/SST7qBOGO28X2sVc/images/azureAD5.png?fit=max\&auto=format\&n=SST7qBOGO28X2sVc\&q=85\&s=edb34267a9916dc15c9b6ece929fcdd5)

![Entra ID Graph Permissions](https://mintcdn.com/cognitionai/SST7qBOGO28X2sVc/images/azureAD6.png?fit=max\&auto=format\&n=SST7qBOGO28X2sVc\&q=85\&s=93d5454c01258e6b1aade3edd2edc89c)

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/SST7qBOGO28X2sVc/images/azureAD7.png?fit=max\&auto=format\&n=SST7qBOGO28X2sVc\&q=85\&s=ecb2bb8608f0b68f767d353328cfe61a)

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

![Entra ID Manifest](https://mintcdn.com/cognitionai/SST7qBOGO28X2sVc/images/azureAD8.png?fit=max\&auto=format\&n=SST7qBOGO28X2sVc\&q=85\&s=391b1ec12b3b1cc41babeb2b0e8c1e6b)

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/SST7qBOGO28X2sVc/images/azureAD9.png?fit=max\&auto=format\&n=SST7qBOGO28X2sVc\&q=85\&s=49c0545d34d79fbb25eb1f6fbbba27c6)

## 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.devin.ai/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.