How to Configure Microsoft Entra ID (Azure AD) SSO in Teleport (OIDC Guide)
Last verified: December 2026 (Teleport 19.0.x)
Configure Microsoft Entra ID (formerly Azure Active Directory) as an OpenID
Connect (OIDC) identity provider for a self-hosted Teleport cluster. Map Entra
security groups to Teleport roles, apply the Teleport kind: oidc connector
(version: v3), and verify login with tsh.
Microsoft Entra ID SSO requires Teleport Enterprise. If you are running Community Edition, this guide also explains the available paths to corporate SSO.
Prerequisites
Teleport cluster
Verify the edition your cluster runs from your workstation:
tctl statusCluster teleport.example.comVersion 19.0.2Then check the server binary on an Auth Service host:
teleport versionTeleport Enterprise v19.0.2 git:v19.0.2 go1.25.5The output must contain Teleport Enterprise. If it reads only Teleport, the
cluster is Community Edition and cannot create this connector.
Teleport Community Edition supports GitHub SSO and local users. It rejects this
connector with ERROR: OIDC is only available in Teleport Enterprise. No
configuration switch enables kind: oidc. If your binary reads Teleport
rather than Teleport Enterprise, see
Microsoft Entra ID SSO for Teleport Community Edition
for the available options.
Microsoft Entra ID administrator
You need an Entra ID administrator account with permission to register applications and inspect security groups. The Application Administrator, Cloud Application Administrator, or Global Administrator directory roles cover all required permissions.
Have your Directory (tenant) ID ready. Find it on the Overview page in the Entra admin center or with the Azure CLI:
az account show --query tenantId -o tsvEntra security groups
Have at least one Entra ID security group ready to map to Teleport roles. Teleport matches each group by its immutable Object ID (UUID), not its display name. Copy each group's Object ID from its Overview page in the Entra admin center.
Use a direct member of a mapped group for the first sign-in test.
Network access from Auth Service hosts
The Teleport Auth Service uses login.microsoftonline.com to discover Entra's
OIDC configuration, verify token signatures, and exchange authorization codes
for tokens. Allow outbound HTTPS (TCP port 443) from every Auth Service host to
this endpoint.
Run this check from each Auth Service host.
curl -sS --max-time 10 -o /dev/null \ -w "login.microsoftonline.com: HTTP %{http_code}\n" \ "https://login.microsoftonline.com/"An HTTP response confirms connectivity. If curl reports HTTP 000, check DNS,
firewall, proxy, or TLS settings before continuing.
Step 1. Configure Microsoft Entra ID with Terraform
If you do not use Terraform, follow Entra admin center setup below instead.
Save
teleport-microsoft-entra-sso.tf
in a new private working directory. It creates a single-tenant app registration
with Teleport's OIDC callback URI, adds the groups claim to ID tokens, creates
the enterprise application and client secret, and creates the
Teleport-Admins and Teleport-Developers security groups. Keep Terraform
state, state backups, and exported secrets out of source control.
Authenticate with the Azure CLI, replace teleport.example.com with your public
Teleport Proxy hostname, and apply:
umask 077az loginterraform initterraform apply -var='proxy_public_addr=teleport.example.com'terraform output -raw tenant_idterraform output -raw application_idterraform output group_object_idsterraform output -raw client_secretContinue to Step 2 to map the
group_object_ids output to Teleport roles.
Step 1. Configure Microsoft Entra ID in Entra admin center
Use this section if you do not use Terraform. If you already provisioned Entra ID with Terraform above, skip to Step 2.
Step 1.1. Register the application
-
Sign in to the Microsoft Entra admin center.
-
Open Entra ID → App registrations and click New registration.
-
Set these fields.
- Name:
Teleport Access - Supported account types: Single tenant only (accounts in your organizational directory only).
- Redirect URI: Select Web and enter
https://teleport.example.com/v1/webapi/oidc/callback. Replaceteleport.example.comwith your public Teleport Proxy hostname. Keephttps://, omit:443, and omit the trailing slash.
- Name:
-
Click Register.
-
On the application Overview page, copy the Application (client) ID and Directory (tenant) ID.
Step 1.2. Create a client secret
-
In the application sidebar, open Manage → Certificates & secrets.
-
Open the Client secrets tab and click New client secret.
-
Enter a description (for example,
Teleport Auth Service), choose an expiration period that matches your rotation policy (Entra ID caps client secrets at 24 months), and click Add. -
Copy the Value column before leaving the page. Entra ID masks the secret as soon as you leave and never shows it again. Do not copy the Secret ID column.
Anyone with the client secret can impersonate Teleport to Entra ID's OAuth endpoints. Store it in the same secret manager you use for production credentials. Do not commit it to Git.
Step 1.3. Configure the groups claim
Entra ID does not include group memberships in ID tokens by default. Configure
the app registration to emit security group Object IDs in the groups claim so
Teleport can map them to roles in
Step 2:
-
In the application sidebar, open Manage → Token configuration.
-
Click Add groups claim.
-
Under Select group types to include in Access, ID, and SAML tokens, select Security groups. If a user belongs to more than 200 groups, Entra ID omits the
groupsclaim from the ID token and emits a Graph overage pointer instead. For users who exceed this limit, select Groups assigned to the application and assign only the groups needed for Teleport access. This option requires Microsoft Entra ID P1 or a license that includes it. -
Under Customize token properties by type, expand ID, keep Group ID selected so Entra ID emits immutable Object IDs rather than display names, and leave Emit groups as role claims unchecked.
-
Click Add (or Save). Confirm that
groupsappears in the Optional claims table with ID listed under Token type.
Step 2. Apply the Teleport OIDC connector
Write the Teleport kind: oidc (version: v3) connector manifest as
teleport-connector.yaml:
kind: oidc
version: v3
metadata:
name: entra
spec:
display: Microsoft
redirect_url: https://teleport.example.com/v1/webapi/oidc/callback
issuer_url: https://login.microsoftonline.com/<tenant-id>/v2.0
client_id: <application-client-id>
client_secret: <client-secret-value>
username_claim: preferred_username
prompt: select_account
claims_to_roles:
# Teleport-Admins (Object ID from Entra admin center)
- claim: groups
value: <admins-group-object-id>
roles:
- editor
- access
# Teleport-Developers (Object ID from Entra admin center)
- claim: groups
value: <developers-group-object-id>
roles:
- access
Replace:
<tenant-id>with the Directory (tenant) ID from Step 1 (or Step 1.1).<application-client-id>with the Application (client) ID from Step 1 (or Step 1.1).<client-secret-value>with the secret Value from Step 1.redirect_urlwith the exact callback URI configured in Step 1.<admins-group-object-id>and<developers-group-object-id>with your Entra security group Object IDs (UUIDs from each group's Overview page). A display name such asTeleport-Adminswill not match.
Apply the connector from your authenticated Teleport admin terminal:
tctl create -f teleport-connector.yamlauthentication connector "entra" has been createdStep 3. Verify login with tsh
Confirm that the connector exists on your Teleport cluster:
tctl get oidc/entrakind: oidcversion: v3metadata: name: entra...Keep your administrative terminal open. From a second terminal window, sign in as a direct member of a mapped Entra security group:
tsh login --proxy=teleport.example.com --auth=entraIf browser window does not open automatically, open it by clicking on the link: http://127.0.0.1:52764/9b47d2a1-...> Profile URL: https://teleport.example.com:443 Logged in as: alice@example.com Cluster: teleport.example.com Roles: editor, access Valid until: 2026-12-02 10:30:00 +0000 UTCConfirm that Roles shows the roles you mapped in Step 2. If the test user
reaches Microsoft but Teleport denies the login, inspect the failed user.login
event in the Teleport audit log before changing the connector. Also verify that
an account outside the mapped security groups is denied access.
Microsoft Entra ID SSO for Teleport Community Edition
Microsoft Entra ID SSO requires Teleport Enterprise. If you follow this guide on a Teleport Community Edition cluster, applying the OIDC connector in Step 2 returns:
ERROR: OIDC is only available in Teleport Enterprise
This is a licensing restriction, not a configuration issue. Teleport Community Edition does not support Microsoft Entra ID SSO, and no configuration flag enables OIDC. The available paths are Teleport Enterprise, a custom Teleport fork, or another platform that includes corporate SSO.
Upgrade to Teleport Enterprise
Upgrading to Teleport Enterprise is the officially supported way to enable Microsoft Entra ID SSO on your existing Teleport cluster.
According to Vendr, a software procurement and pricing intelligence platform, the median annual Teleport contract is $50,950/year, with reported contracts reaching $137,119/year (156 purchases, February 2026). These figures reflect total contract values, not the standalone cost of SSO.
If Teleport Community Edition already meets your infrastructure access requirements and Microsoft Entra ID SSO is your only reason to upgrade, consider whether an Enterprise subscription is worth the cost.
Upgrading to self-hosted Teleport Enterprise also requires more than applying a
license key. As documented in Teleport's
Linux installation guide,
Community Edition and Enterprise are distributed as separate builds. For
package-based deployments, you will need to replace teleport with
teleport-ent and maintain a valid Enterprise license.
Maintain a custom Teleport fork
Another option is to fork Teleport's AGPLv3-licensed codebase and implement your own Microsoft Entra ID OIDC connector. Give Claude Code, Codex, or Google Antigravity the codebase and a well-crafted prompt, and you might have a working connector in minutes.
The real work begins with the next upstream release. Your team becomes responsible for upstream merges, security backports, authentication testing, and building and distributing custom binaries across your infrastructure. AGPLv3 copyleft obligations come bundled, too. Corporate legal loves AGPLv3. Especially when you fork it.
Consider an alternative to Teleport
AlmaForge includes Microsoft Entra ID SSO and security-group role mapping in AlmaForge Free. It also supports Google Workspace, Okta, Keycloak, and other OIDC providers.
The platform uses short-lived certificates, reverse tunnels, label-based RBAC, session playback, and audit logs. It also includes just-in-time access requests, ChatOps integrations, and a kubectl-style CLI.
You can reuse the app registration and security groups from this guide for an evaluation. Use dedicated credentials in production.
Reuse your Microsoft Entra ID SSO configuration with AlmaForge
Add https://<almaforge-proxy>/api/v1/oidc/callback to your app registration's
Redirect URIs under the Web platform and apply the corresponding SSO
connector:
kind: oidc
version: v3
metadata:
name: entra
spec:
display: Microsoft
redirect_url: https://teleport.example.com/v1/webapi/oidc/callback
issuer_url: https://login.microsoftonline.com/<tenant-id>/v2.0
client_id: <application-client-id>
client_secret: <client-secret-value>
username_claim: preferred_username
prompt: select_account
claims_to_roles:
- claim: groups
value: <admins-group-object-id>
roles:
- editor
- access
# Microsoft Entra ID connector loading clientSecret from a local file.
apiVersion: almaforge.com/v1
kind: OIDCConnector
metadata:
name: microsoft
spec:
display: Microsoft
provider: microsoft
issuerURL: https://login.microsoftonline.com/<tenant-id>/v2.0
clientID: <application-client-id>
clientSecret: ${file:/etc/almaforge/microsoft-secret.txt}
usernameClaim: preferred_username
# Use each group's Object ID (UUID) from Entra ID under value, not its
# display name, and list existing AlmaForge roles.
claimsToRoles:
# AlmaForge-Admins
- claim: groups
value: <admins-group-object-id>
roles: [admin, access]
# AlmaForge-Developers
- claim: groups
value: <developers-group-object-id>
roles: [access]
tctl create -f teleport-connector.yamltsh login --proxy=teleport.example.com --auth=entraalma apply -f microsoft.yamlalma login --proxy=almaforge.example.comDownload microsoft.yaml.
AlmaForge derives the OIDC callback URL automatically and uses the same Entra security group Object IDs as Teleport. Your existing Entra groups remain the source of infrastructure access policy.
Run an AlmaForge evaluation alongside Teleport, reuse the Entra app registration, and test SSO with your existing security groups. Your production Teleport cluster remains unchanged. If AlmaForge fits your requirements, follow the migration guide when you are ready.
Further reading
- AlmaForge for Teleport users: migrate with a side-by-side deployment.
- Configure Microsoft Entra ID SSO in AlmaForge.
- Run a local AlmaForge cluster in ten minutes.
- Compare AlmaForge Free and Enterprise editions.
Disclaimer
Teleport and other third-party trademarks are the property of their respective owners and are used solely for identification and comparison. AlmaForge is not affiliated with, sponsored by, or endorsed by Teleport or its owners. This guide reflects publicly available information reviewed as of December 2026. Product features, pricing, and licensing are subject to change.