Microsoft Entra ID
Connect Microsoft Entra ID to sign users in with Microsoft accounts and run MCP tools with per-user Graph and API permissions using On-Behalf-Of (OBO) token exchange.
Set up sign-in first. Continue with token exchange only if MCP tools need to call downstream APIs as each person.
Register the Entra Application
- In the Microsoft Entra admin center, go to Identity → Applications → App registrations and click New registration.
- Set Name to
Archestra. - Set Supported account types to Accounts in this organizational directory only (Single tenant).
- Set Redirect URI to Web and enter your callback URL:
https://<archestra-domain>/api/auth/sso/callback/EntraID
(For local testing:http://localhost:3000/api/auth/sso/callback/EntraID) - Click Register. Note the Application (client) ID and Directory (tenant) ID.
- Under Certificates & secrets, click New client secret, name it, click Add, and copy the secret Value.
- Under API permissions, click Add a permission → Microsoft Graph → Delegated permissions, check
User.Read, and click Grant admin consent.
Configure SSO in Archestra
- In Archestra, navigate to Settings → Identity Providers and click Enable on Microsoft Entra ID.
- Replace
{tenant-id}in the pre-filled URLs with your Entra Directory (tenant) ID. - Paste your Client ID and Client Secret.
- Confirm Scopes contains
openid,profile, andemail. Addoffline_to enable background token refresh.access - Optional: Set Allowed Email Domains (e.g.
company.com). - Click Create Provider.
Test sign-in in an incognito window using your Microsoft credentials.
Map Roles and Sync Teams
Configure how Entra claims map to Archestra roles and teams:
- Role Mapping: Map Entra app roles or directory groups to Archestra roles. See Role Mapping.
- Team Sync: In Entra's Token configuration, add a Groups claim (
Group IDorsAMAccountName). In Archestra, link teams to Entra group IDs under Settings → Teams. See Team Sync.
If your deployment only requires sign-in, setup is complete.
Configure Entra for On-Behalf-Of (OBO)
OBO allows Archestra to swap the user's login access token for a token scoped to downstream APIs (like Microsoft Graph, SharePoint, or internal APIs).
- In the Entra app registration, open Expose an API.
- Click Add next to Application ID URI and accept
api://<client-id>. - Click Add a scope:
- Scope name:
access_as_ user - Who can consent: Admins and users
- Admin consent display name:
Access Archestra on user's behalf - Click Add scope.
- Scope name:
- Under Authorized client applications, click Add a client application:
- Paste the Application (client) ID of this same app registration.
- Check the
api://<client-id>/access_as_userscope and click Add application.
- Under API permissions, add delegated scopes for any downstream APIs the MCP tools will call (such as
Mail.ReadorCalendars.Read), then click Grant admin consent.
Enable OBO in Archestra
- In Settings → Identity Providers, edit Microsoft Entra ID and expand Enterprise-Managed Credentials.
- Under Scopes, ensure
access_is included:as_ user
openid profile email offline_access api://<client-id>/access_as_user - Set Exchange Token Endpoint to:
https://login.microsoftonline.com/<TENANT_ID>/oauth2/v2.0/token - Set Exchange Client Authentication to Client secret POST.
- Set User Token To Exchange to Access token.
- Save the provider.
Configure MCP Server Multitenant Auth
Enable per-user downstream credentials on target MCP servers:
- In MCP Servers, edit the target catalog entry and open Multitenant Authorization.
- Select Identity Provider Token Exchange and pick Microsoft Entra ID.
- Set Requested Credential to Bearer token and Injection Mode to Authorization: Bearer.
- Set Managed Resource Identifier to the downstream audience:
- Microsoft Graph:
https://graph.microsoft.com - Custom API:
api://<downstream-client-id>
- Microsoft Graph:
- Save the server. When assigning tools to an agent or gateway, set the resolution type to Resolve at call time.
Servers running in cluster pods must use streamable-http transport to support per-request token exchange.