Step 2: Secure the setup user
- Who
- Enterprise owner
- Hands-on
- ≈ 20 min
- Needs
- 1Start the trial
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
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.
Set the password
Section titled “Set the password”-
In the email to set the password, open the Set your password link in a private or incognito browser window.
-
Set a strong password. Store the username and password in your company password manager right away.
Turn on two-factor authentication
Section titled “Turn on two-factor authentication”-
Signed in as the setup user, open Password and authentication and click Enable two-factor authentication.
-
Scan the QR code with your authenticator app and enter the code.
-
Download the recovery codes and store them in the password manager.
Create the token for provisioning
Section titled “Create the token for provisioning”Entra ID needs a token to create users in step 7. Create it now, still signed in as the setup user.
-
Click Generate new token, then Generate new token (classic).
-
Under Note, describe it, for example
SCIM provisioning for Entra ID. -
Set Expiration to no expiration. If the token expires, provisioning stops.
-
Select the scim:enterprise scope.
-
Click Generate token, then copy the token into the password manager. GitHub shows it only once.
Troubleshooting
Section titled “Troubleshooting”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.
Done when…
Section titled “Done when…”SHORTCODE_adminhas 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:enterpriseand no expiration is stored securely.