Skip to main content
This guide shows how to configure team synchronization so a GitHub organization team is managed by an Okta group (identity provider). Team synchronization lets you manage GitHub team membership from Okta—useful for centralizing access control, automating provisioning, and enforcing SSO. Prerequisites
  • Admin privileges for the GitHub organization.
  • Okta administrator access to create groups, API tokens, and assign applications.
  • Organization-level SSO and security controls enabled in GitHub (for example, 2FA and SAML/SSO).
  • A GitHub Enterprise Cloud application configured in Okta.
Overview — high-level steps
  1. Create the GitHub team.
  2. Create a corresponding Okta group and add members.
  3. Enable team synchronization in the GitHub organization settings.
  4. Create an Okta API token (SSWS) and note your Okta Org URL.
  5. Assign the Okta group to the GitHub application.
  6. Map the Okta group to the GitHub team and save.
  7. Observe synchronization and complete the join flow.
Step 1 — Create a team in your GitHub organization
  • In your GitHub organization, create a new team for the members who should be managed by Okta. For this demo the team is named “Console-Dev” (short: dev).
  • Configure Parent team (if applicable), visibility, and notification preferences, then create the team.
  • Initially, the team creator (e.g., Alice) is the only member.
Step 2 — Create a corresponding group in Okta
  • In Okta, create a group that represents the users you want synchronized into the GitHub team. Example name: “GitHub Engineers”.
  • Add the users (for example, Dev1 and Dev2) who should belong to the GitHub team, then save.
A screenshot of the Okta Admin Console with an "Add group" dialog open. The modal shows fields for Name (partially filled with "Git") and Description, plus Save/Cancel buttons.
  • After saving the group, assign the intended users to it.
A screenshot of the Okta Admin Console showing the Groups membership/Assign page with a green success banner indicating a user was added. The main panel lists several users and their active/assigned statuses alongside navigation on the left.
Step 3 — Enable team synchronization in GitHub Organization settings
  • Team synchronization is configured at the organization level. In your GitHub Organization Settings, open Authentication security.
  • Verify required security controls are enabled (for example, 2FA and SSO/SAML).
  • At the bottom of the Authentication security section you should see Team synchronization — this is the feature that enables an identity provider to manage team membership.
A dark-mode screenshot of GitHub's organization Team settings page for "Console-Dev," showing fields for team name, description, parent team, visibility and notification options, and a profile picture upload area. The left sidebar lists General, Code review, and Scheduled reminders, and a green "Save changes" button is visible.
Step 4 — Obtain Okta API token and Org URL (SSWS token and issuer URL)
  • In the Okta Admin Console go to Security > API > Tokens to create an API token. This token (SSWS token) is used by GitHub to call Okta APIs for group membership synchronization.
  • Copy your Okta Org (base) URL — the API base URL GitHub will call (for example, https://dev-123456.okta.com). Do not use internal admin console endpoints; use the organization/base URL or the issuer URL required by the integration.
  • Optionally restrict the token by IP address; in this demo the token is allowed from any IP.
Store your SSWS token securely and restrict its scope and network access when possible. Treat this token like a password.
A screenshot of the Okta Admin Console showing an active API token named "github-team-sync" with a "Revoke token" button and panels for Security and token rate limits. The left sidebar displays Admin Console menu items and a top banner notes a trial period remaining.
Step 5 — Assign the Okta group to the GitHub application
  • In Okta, open the GitHub Enterprise Cloud (GEC) application that represents your GitHub org integration and go to Assignments.
  • Assign the “GitHub Engineers” group to the GitHub application so those users are authorized/provisioned for the organization.
A screenshot of the Okta Admin Console showing the GitHub Enterprise app "GEC-Org" on the Assignments tab with buttons to assign users/groups and provision users. The left navigation menu and a reports/self-service panel are visible.
Step 6 — Link the Okta group to the GitHub team
  • In GitHub, open the Console-Dev team Settings. You should now see an option to select an Identity Provider Group.
  • Search for and select the “GitHub Engineers” group (the Okta group you created) and click Save changes. This configures GitHub to manage the team membership from Okta.
Ensure the selected Okta group is the correct one and that the GitHub app assignment in Okta includes that group. Mapping the wrong group can grant unintended access.
A dark-mode screenshot of GitHub's "Team settings" page. It shows the team name "Console-Dev", a profile picture upload area, identity provider group selection, and visibility/notification options.
Step 7 — Observe synchronization and complete the join flow
  • After mapping the identity provider group, GitHub will show the team as managed by Okta. Synchronization timing depends on provisioning configuration and SSO authentication by users.
  • Users in the Okta group will receive invitations to join the organization/team. They must authenticate via SSO to accept and complete the join.
A dark‑mode GitHub organization page for "game‑devstudio" showing an invitation banner and a notice that the user was removed because Single Sign‑on is required. The page displays the org avatar, a "gh-actions" repository listing, and a Follow/View invitation button.
  • Initial sync may show only a subset of users immediately; provisioning and SSO authentication can complete asynchronously. In this demo one member was visible quickly and others followed.
A screenshot of a GitHub organization team page for "Console-Dev" in dark mode, showing the team avatar, name, and an empty About section. The Members panel on the right lists one member, "sid-dev2-kk."
Troubleshooting tips
  • If members are not appearing:
    • Verify the Okta group is assigned to the GitHub app and the assignment is active.
    • Confirm the SSWS token and Okta Org URL are correct in the GitHub team-sync settings.
    • Check users have completed SSO authentication and accepted organization invitations.
  • For token issues, revoke and re-create the token in Okta and update the integration.
  • Review Okta and GitHub logs to surface provisioning errors.
Quick reference — step checklist Links and references Summary
  • Create the GitHub team and a corresponding Okta group.
  • Generate an Okta SSWS token and copy the correct Okta Org URL.
  • Assign the Okta group to the GitHub application in Okta.
  • Map the Identity Provider Group to the GitHub team and save.
  • Wait for synchronization; ensure users accept invitations and log in via SSO.
This completes the team synchronization configuration between Okta and GitHub.

Watch Video