Skip to content

Step 6: Turn on single sign-on with Entra ID

Who
Enterprise ownerEntra admin
Hands-on
≈ 20 min

Have ready

  • The setup user’s password and second factor from step 2
  • An Entra admin with Global Administrator rights, ready to sign in during the step
  • A spot in your password manager for the SSO recovery codes
Your setup, sketchedSketch: Microsoft Entra ID signs people in to your GHE.com enterprise (single sign-on) and syncs users and groups (SCIM). Your Azure subscription pays for usage. Developers sign in from their IDE or CLI and use Copilot.Entra IDGHE.comCopilotAzureIDESSOSCIMbillinglogin

The part of your setup this step touches

With OIDC, people sign in to SUBDOMAIN.ghe.com with their Entra account, and your Conditional Access policies apply automatically. This step turns sign-in on; step 7 brings the people.

From Entra ID to a Copilot licenseSketch: people sign in to SUBDOMAIN.ghe.com through Microsoft Entra ID with OIDC (step 6). SCIM creates their accounts (step 7) and syncs groups into enterprise teams (step 8). You assign Copilot licenses to those teams (step 9).Microsoft Entra IDUsersGroupsthrough the enterprise app“GitHub EnterpriseManaged User (OIDC)”GHE.comSUBDOMAIN.ghe.comSign-in (SSO)Managed usersEnterprise teamsCopilot licensesOIDC sign-inSCIM: usersSCIM: groupsassign6789
  1. Sign in to https://SUBDOMAIN.ghe.com as the setup user SHORTCODE_admin and open your enterprise.

  2. Click Identity provider, then Single sign-on configuration.

  3. Under OIDC single sign-on, select Enable OIDC configuration and click Save.

  4. GitHub sends you to Microsoft. Sign in with the Global Administrator account.

  5. Tick Consent on behalf of your organization and click Accept. This adds the GitHub Enterprise Managed User (OIDC) app to your Entra tenant.

  6. Back in GitHub, save the SSO recovery codes with Download, Print or Copy, and store them in the password manager.

  7. Click Enable OIDC Authentication.

Conditional Access is automatic

With OIDC, your Entra Conditional Access policies apply without an extra switch. Optional: extended protection for web sessions (in preview) under Authentication security.

Sign-in starts at GitHub

OIDC doesn’t support signing in from the Entra side, so people open https://SUBDOMAIN.ghe.com instead of clicking an app tile.

Microsoft says you need admin approval

The account you signed in with isn’t a Global Administrator. Repeat the step with one, or have your Entra admin sign in for you.

Your tenant already uses OIDC for another GitHub enterprise

Each Entra tenant supports one OIDC connection. Use SAML for this enterprise instead.

Nobody can sign in after a change to single sign-on

Sign in as the setup user with password and second factor and fix the configuration. If that’s not possible, use one of the SSO recovery codes.

  • OIDC authentication is enabled for the enterprise.
  • The SSO recovery codes are stored in your password manager.
All checkpoints on one printable page →
Single sign-on with Microsoft Entra ID. It may show a different sign-on protocol than the OIDC setup on this page; follow the written steps for OIDC.Microsoft video series, recorded in October 2025, in English. Screens may have changed since, and the video may show GitHub.com instead of GHE.com. Loads from YouTube (youtube-nocookie.com) only after you press play. Open on YouTube ↗