Skip to main content

Identity Governance is available only with Teleport Enterprise. Start your free trial.

Start your free trial

Identity Governance with Microsoft Entra ID

Report an Issue

This guide shows how to connect Microsoft Entra ID to Teleport and use Entra ID groups to govern access to your infrastructure. You will set up the Entra ID integration to sync users and groups, then use Access Lists to:

  • Give the members of one Entra ID group standing access to servers.
  • Let the members of another Entra ID group request just-in-time access to a database, with approval from a third group.

Entra ID admins keep managing people and groups in Entra ID. Teleport decides what each group can access, and who is accountable for it.

Workshop environment

The workshop environment runs an Entra ID simulator at https://entra.localhost:10443.

How it works​

Entra ID integration has two parts:

Description
SSOCreates a SAML connector named entra-id so Entra ID users can log in to Teleport.
User and group syncTeleport pulls users, groups, and group members from the Microsoft Graph API on a regular basis. Users become Teleport users, and each group becomes an Access List whose membership mirrors Entra ID.

Entra ID doesn't push changes to Teleport. Changes made in Entra ID appear in Teleport after the next sync.

Users who log in with the Entra ID connector get the preset requester role, which grants no standing access to resources. Entra ID-synced Access Lists don't grant any roles.

To give an Entra ID group access to Teleport-protected infrastructure, you add its Entra ID-synced Access List as a member of an Access List that you create in Teleport.

Prerequisites​

  • A Teleport Enterprise cluster with Identity Governance.
  • A Teleport user with the editor role.
  • A Microsoft Entra ID tenant where you have privileged administrator permissions. The guided setup uses Teleport as an OIDC provider for the Graph API, so Entra ID must be able to reach your Teleport Proxy Service.
  • At least one SSH server and one database enrolled in Teleport, with labels you can select them by.
  • Two Entra ID groups to grant access to, and one group to approve requests. This guide uses these groups:
    • admins: gets standing access to servers and approves database access requests.
    • readonly: requests just-in-time access to the database.
Workshop environment
  • Sign in to https://teleport.localhost:3080 with the default Duo login and choose Andrew Admin. This user has the editor role.
  • The cluster has an SSH server and a PostgreSQL database, both labeled env: docker.
  • The Entra ID simulator has three users, Andrew Admin, Randy Reviewer, and Roger Requester, with @entra.example.com logins. Andrew and Randy are in admins, and Roger is in readonly.

Step 1/4. Connect Entra ID to Teleport​

Real Entra ID

The workshop environment runs a simulated Entra ID tenant. To configure a real tenant, you need to run the generated script presented by the guided flow in Azure Cloud Shell. It creates an enterprise application in Entra ID for SSO, grants it read access to the Graph API, and sets up Teleport as its OIDC provider.

You can also configure Entra ID manually in the Azure Portal or using Terraform.

In the Teleport Web UI, go to Add New > Integration and select the Microsoft Entra ID tile. The guided flow walks you through the setup.

Default owners​

Keep the default integration name, entra-id, and choose default owners for the Access Lists that Teleport creates for Entra ID groups. See Getting Started with the Entra ID Integration.

Add [email protected] as a default owner.

Configure Entra ID​

Skip the script in the workshop environment as there is no real Azure tenant to configure. Use the Tenant ID and Client ID from the simulator home page.

At this point, Teleport imports Entra ID users and groups. When a user is added to an Entra ID group, Teleport adds them to the group's Entra ID-synced Access List on the next sync, and they get the access granted through it at their next login. When they leave the group, they are removed from the corresponding Access List as well.

Teleport imports all Entra ID groups by default. In large tenants, use group filters to import only the groups you need.

Update default role​

By default, the Entra ID connector maps all users to the preset requester role that grants not standing access to resources but allows to see and request access to them. This provides reasonable out-of-the-box experience but may not be suitable for all use-cases.

For this workshop, go to the Auth Connectors page and edit the entra-id connector to remove this default mapping. This way, users will only get the roles granted by Access Lists you create below.

Step 2/4. Grant standing access to an Entra ID group​

In this step you will give members of the admins Entra ID group access to your servers whenever they log in.

Go to Create New Access List and follow the Standing Access Guide to create an Access List that grants access to selected resources.

The workshop environment includes an SSH server labeled env: docker. Use it to grant access to the Entra ID admins group. If you also followed the Okta guide, the cluster has more than one Access List named admins. Pick the one synced from Entra ID.

Members of the Entra ID group now inherit the list's access through nesting. The Entra ID-synced list stays managed by Entra ID.

To verify, log in to Teleport via Entra ID connector as a member of the admins group, for example Andrew Admin in the workshop environment. The servers now appear in the resource list.

Step 3/4. Let an Entra ID group request just-in-time access​

In this step you will let members of the readonly Entra ID group request temporary access to a database with members of the admins group reviewing their requests.

Go to Create New Access List and follow the Just-in-Time Access Guide to create an Access List that grants Access Request permissions to a database.

Pick readonly Entra ID Access List as a list member and admins Entra ID Access List as list owner.

Step 4/4. Request and approve access​

Log in as a member of the readonly group via Entra ID connector, for example Roger Requester. The database appears in the resource list as a requestable resource. Submit an Access Request.

Re-login as a member of the admins group and approve the request from the Access Requests page.

Log in back as the requester, open the approved request and click Assume Roles. You can now connect to the database. The access ends when the request expires or the user's session ends.

Further reading​