Skip to main content
This guide shows how to configure SCIM provisioning in Okta to automate user lifecycle management for a GitHub organization. SCIM (System for Cross-domain Identity Management) lets Okta create, update, and deactivate GitHub accounts via API so user access is provisioned and revoked automatically. Prerequisites
  • An Okta admin account with rights to manage Applications and assign users.
  • An existing GitHub organization where you have owner permissions.
  • A GitHub application configured in Okta for your organization.
  1. Verify users exist in Okta Confirm the users you want to provision (for example, Dev1 and Dev2) exist in your Okta People directory. They do not need prior GitHub access if you plan to provision them via SCIM.
A screenshot of the Okta Admin Console open to the "People" directory, showing a list of users with their primary emails and Active statuses. The page also shows sidebar navigation, a search bar, and action buttons like "Add person" and "Reset passwords."
  1. Open the GitHub app integration in Okta In the Okta Admin Console, open the GitHub application you created. From the app settings, navigate to the Provisioning tab.
A screenshot of the Okta Admin Console on the Applications page, showing a list of configured apps (e.g., GEC-Org, Okta Admin Console, Okta Browser Plugin) and status counts. The top has action buttons like "Create App Integration" and "Browse App Catalog."
  1. Enable API Integration and authenticate with GitHub Under Provisioning → Configure API Integration, enable API Integration. Okta will prompt you to authenticate against GitHub Enterprise Cloud to obtain an OAuth token that authorizes Okta to manage users for your organization.
When you click Authenticate with GitHub Enterprise Cloud, GitHub shows an OAuth screen asking you to authorize the Okta SCIM integration. Select the organization(s) you want to allow and then authorize the integration.
A dark-themed GitHub OAuth authorization screen asking to authorize "OKTA SCIM Integration" (by OktaOAN) to access the user's organizations and teams. The dialog shows organization access options and buttons to Cancel or "Authorize OktaOAN."
Troubleshooting authorization failures
  • If you receive a “forbidden” or similar error, review your GitHub organization’s third‑party application access policy and security settings. Organization-level restrictions (such as requiring 2FA or blocking third‑party apps) can prevent Okta from obtaining the OAuth token.
  • Confirm your account is an organization owner or has sufficient permissions to approve third‑party app access.
A dark-theme screenshot of a GitHub organization settings page for "game-devstudio," showing the Two-factor authentication section with options to require 2FA and allow only secure methods. The left sidebar shows organization settings navigation (General, Policies, Billing, Repository, etc.).
If the organization restricts third‑party access, either remove the restriction or explicitly approve the Okta SCIM integration in the Third‑party application access policy.
A GitHub organization settings page for "game-devstudio" showing the Third-party application access policy set to "Access restricted" with a red "Remove restrictions" button. The page also shows an approved "OKTA SCIM Integration" application.
  1. Save and enable provisioning actions After successful OAuth authorization, save the provisioning configuration in Okta. Then choose which provisioning actions to enable. We recommend enabling all three lifecycle actions so Okta can fully manage GitHub accounts:
Enabling these options ensures Okta can provision new users, update their attributes, and deprovision them automatically.
  1. Assign the GitHub app to Okta users (provision users) Assign the GitHub application to the Okta users you want to provision (e.g., Dev1 and Dev2). Assignments trigger Okta to create invitations or link existing GitHub accounts via SCIM.
When Okta provisions a user, GitHub will send an organization invitation. The invitation requires the user to authenticate with the identity provider (Okta) to accept.
A dark-themed screenshot of a GitHub organization page for "game-devstudio," showing a banner that says the user was removed for needing Single Sign-on and an invitation from "alice-admin-kk" with a "View invitation" button. The page lists a purple avatar and a public repository named "gh-actions."
The invited user clicks Authenticate to join and completes authentication through Okta to accept the invitation.
A GitHub webpage showing an invitation to join the "game-devstudio" organization with a purple org avatar and buttons to "Authenticate to join" or "Decline." The invite is shown as sent by alice-admin-kk and includes a list of information owners may see.
After successful authentication, the user appears as an organization member—confirming Okta successfully created or linked their GitHub account via SCIM.
A dark‑mode GitHub organization "game-devstudio" People page showing a list of three members (alice-admin-kk, kabir-dev1-kk, sid-dev2-kk) with their avatars and membership roles. The left sidebar shows organization and enterprise permission sections.
  1. Demonstrate deprovisioning (automated removal) One of the primary benefits of SCIM is automated deprovisioning. To test this, unassign a user (for example, Dev1) from the GitHub app in Okta. Okta will process the unassignment and SCIM will remove or deactivate the corresponding GitHub organization membership.
A screenshot of the Okta Admin Console showing the Applications → Assignments page for a GitHub Enterprise app, with a table of user assignments and action buttons (Assign, Provision User). The page also shows a trial banner at the top and sidebar navigation and reports/self‑service panels on the right.
If the user attempts to access the organization after unassignment, they will see they have been removed. This confirms SCIM deprovisioning worked—Okta removed access and GitHub revoked the organization membership.
SCIM automates provisioning, attribute updates, and deprovisioning via API. SAML alone provides single sign-on (authentication) but does not automate account lifecycle management. To ensure users are removed from GitHub when they leave your identity provider, enable SCIM provisioning.
Troubleshooting checklist
  • OAuth denied/forbidden: Verify organization-level third‑party app policy and approve the Okta SCIM app.
  • Invitations not delivered: Check user email addresses in Okta and GitHub; ensure Okta sends the invite to the correct email.
  • Attributes not syncing: Confirm attribute mappings in Okta Provisioning settings.
  • Deprovisioning not taking effect: Ensure “Deactivate users” is enabled in Okta and SCIM provisioning is active for the app.
References

Watch Video