Before you begin: create an Okta admin account and make sure you have GitHub org admin privileges. Keep a second admin account available during testing in case enforcement removes users who have not yet authenticated via the IdP.
1. Choose where to apply SAML
Decide whether SAML will be enforced across the entire GitHub Enterprise or only for a specific organization.2. Prepare Okta
- Create an Okta account (trial accounts are available).
- Add at least one administrative user (Super Admin recommended).
- If your organization requires MFA, enroll the admin user in Okta Verify (or other configured factor).
- Sign in to the Okta Admin Console and verify you can access Directory / People to view and manage users.
3. Add the GitHub application in Okta
- In the Okta Admin Console, open Applications -> Browse App Catalog (or Browse App Integration Catalog).
- Search for “GitHub” and select the integration that matches your use case:
- For an organization-level setup: choose “GitHub Enterprise Cloud — Organization”.
- Click Add Integration, give the app a descriptive name (for example, “GHEC Org”), and enter your GitHub organization name when prompted (example:
game-devstudio). - Finish creating the application.

4. Retrieve SAML metadata from Okta
Open the Okta application you created and navigate to the Sign On tab (or click View SAML Setup Instructions). Copy the SAML details you will paste into GitHub. Key values to copy:
5. Assign users and groups to the Okta application
- In the Okta app configuration, go to the Assignments (or Assign) tab.
- Add the people and/or groups who should be allowed to authenticate to GitHub (for example your admin account
alice@example.com).

6. Test the SAML connection
- Use Okta’s built-in Test button or GitHub’s SAML test flow to verify the assertion and attribute mappings.
- The test should redirect to GitHub after successful authentication. If the assigned Okta user has MFA and is signed in, the test will usually complete automatically.
7. Configure SAML in the GitHub organization and require SSO
- In GitHub, go to your organization: Settings -> Authentication and security -> SAML.
- Paste the values copied from Okta:
- Sign-on URL
- Issuer
- X.509 public certificate
- Save the configuration and test the “Sign in with SSO” flow for an admin account.
- After verifying the initial authentication, you can choose to require SAML single sign-on for all organization members. Note that requiring SSO will remove any members who have not authenticated via the IdP.

Requiring SAML single sign-on will remove organization members who have not yet authenticated using your identity provider. Notify members and provision accounts in Okta (or another IdP) before enforcing SSO to avoid accidental lockouts.
8. Confirm and apply “Require SAML”
- When you enable “Require SAML single sign-on,” GitHub will display a confirmation dialog listing members who will be removed because they have not authenticated with the IdP.
- Review the list carefully and confirm only when you have verified provisioning and membership coverage.

- GitHub saves the SAML configuration and the “require SSO” setting.
- Removed users will receive notification emails and must be provisioned again via your IdP or via SCIM to regain access.
9. Next steps and recommendations
- For large organizations, enable SCIM provisioning to automate user creation, team membership, and de-provisioning from Okta into GitHub.
- Test a provisioning workflow for a subset of users before enforcing SSO organization-wide.
- Keep a recovery plan: maintain at least one unreachable (backup) admin flow or emergency access method to avoid losing admin access during configuration.
- Document your IdP group-to-GitHub-team mappings and attribute mappings used in SAML assertions.