Skip to content

Step 2: Secure the setup user

Who
Enterprise owner
Hands-on
≈ 20 min

Have ready

  • The email to set the password from step 1; its link expires after 7 days
  • Access to your company password manager
  • An authenticator app on your phone
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

Your enterprise comes with one built-in admin account: the setup user. Its username is a randomly generated shortcode followed by _admin, shown in this guide as SHORTCODE_admin. You use it to set up single sign-on and provisioning. Afterwards it’s your emergency access.

  • It signs in with its own username, password and second factor, never through single sign-on.
  • It can’t be deleted, and it doesn’t use a license.
  1. In the email to set the password, open the Set your password link in a private or incognito browser window.

  2. Set a strong password. Store the username and password in your company password manager right away.

  1. Signed in as the setup user, open Password and authentication and click Enable two-factor authentication.

  2. Scan the QR code with your authenticator app and enter the code.

  3. Download the recovery codes and store them in the password manager.

Entra ID needs a token to create users in step 7. Create it now, still signed in as the setup user.

  1. Click Generate new token, then Generate new token (classic).

  2. Under Note, describe it, for example SCIM provisioning for Entra ID.

  3. Set Expiration to no expiration. If the token expires, provisioning stops.

  4. Select the scim:enterprise scope.

  5. Click Generate token, then copy the token into the password manager. GitHub shows it only once.

The link in the email to set the password has expired

The usual password reset by email doesn’t work for the setup user, and nobody can sign in to the GitHub Support portal with a GHE.com account yet. So ask your Microsoft or GitHub contact right away for a new link to set the setup user’s password, and include your subdomain SUBDOMAIN.ghe.com. If you can, also open a ticket in the portal.

The setup user can’t sign in through Entra ID

That’s expected. The setup user always signs in with its username, password and second factor at https://SUBDOMAIN.ghe.com.

The authenticator device is lost

Sign in with one of the 2FA recovery codes from your password manager, then set up two-factor authentication again.

  • SHORTCODE_admin has a strong password, stored in your company password manager.
  • Two-factor authentication is on and the recovery codes are stored.
  • A personal access token (classic) with scim:enterprise and no expiration is stored securely.
All checkpoints on one printable page →