# Register Claude Desktop in Microsoft Entra ID

Register Claude Desktop as an app in Microsoft Entra ID so it can sign people in to your Dtwo gateway.

## Overview

Claude Desktop needs its own app in Microsoft Entra ID to sign people in to your Dtwo gateway. You only do this once for your organization. Everyone who uses Claude Desktop with your gateway signs in through this app.

## Before you start

If you've already registered your Dtwo gateway in Entra, go to **App registrations**, open the gateway app (for example `Dtwo Gateway`), and copy the **Application (client) ID** from its **Overview** page. This is your `<ApplicationId>`.

If you haven't, follow [Configure Microsoft Entra ID](/docs/identity-provider-entra) first, then come back here.

## Register Claude Desktop

1. Go to **App registrations → New registration**, name it after the client (for example `Claude Desktop`), set **Supported account types** to **Single Tenant Only — Default Directory**, and select **Register**.
2. From **Overview**, copy the **Application (client) ID** — this is the client's `<ClientId>`.
3. Under **Authentication → Add a platform**, select **Mobile and desktop applications** and add the redirect URI `https://claude.ai/api/mcp/auth_callback`.
4. Under **API permissions → Add a permission**, open the **APIs my organization uses** tab, search for `<ApplicationId>`, select your gateway application, check the `mcp` scope, and select **Add permissions**.

## Next steps

Use the client ID you copied to [roll out Dtwo to your organization in Claude Desktop](/docs/connect-client-claude-desktop) or to [connect Claude Desktop for yourself](/docs/connect-yourself-claude-desktop).

---

Having trouble? Email [support@dtwo.ai](mailto:support@dtwo.ai).