Skip to main content
Lumos offers three GitHub connectors, each its own integration card. This article covers GitHub for user and access management: sync and provisioning of organization members, outside collaborators, teams, org roles, and repository access. To authenticate as a GitHub App and sync every organization the App is installed on from one connection, see GitHub (Multi-Auth). Its entitlement IDs differ from this connector (for example push/pull instead of write/read), so access history doesn’t carry over between the two. For read-only security analysis of non-human identities (tokens, deploy keys, GitHub Apps, runners, webhooks) that feeds NHI Security Analysis, see GitHub (NHI). The connectors are independent.
This article covers the current GitHub connector, whose connection card asks for an Enterprise slug. If your connection asks for an Organization Name instead, it uses the Classic GitHub connector, set up before September 2025. The main differences are noted inline below.

After this article

You will be able to connect GitHub to Lumos to sync organization members, outside collaborators, teams, org roles, and repository access, and provision or deprovision that access from Lumos.

Capabilities

Provisioning behavior:
  • Create: Lumos sends a GitHub organization invitation to the requester’s email. It only succeeds if a GitHub handle is already associated with that email, and it doesn’t add the user to any teams. The Create Account workflow’s Organization Role field accepts only an org membership role: Member invites as direct_member and Admin invites as admin. Outside Collaborator can’t be used as the create role, and selecting a Team Role saves but fails at runtime with Expected entitlement type: ORG_ROLE, got: TEAM_ROLE. The account shows Pending until the invite is accepted.
  • Assign an org role: Lumos sets the user’s organization membership. Assigning Outside Collaborator converts an existing org member to an outside collaborator. It can’t be assigned to someone who isn’t already a member.
  • Assign a repo or team role: org owners (admins) can only be assigned as repository admins or team maintainers. Team roles only apply to organization members, not outside collaborators.
  • Assign or remove an Enterprise Team role: Lumos manages membership through the enterprise teams API and needs the admin:enterprise scope. Teams linked to an identity provider group can only be changed there, so Lumos lists them as not assignable. Connections made before Lumos requested admin:enterprise list every enterprise team as not assignable until an enterprise owner reconnects the integration.
  • Unassign an org role: removes the user from the organization if they’re a member, or removes their outside collaborator access if they aren’t.
  • Unassign a repo role: the read role can’t be unassigned from org members, and org owners can’t be removed from repository admin.
  • Delete: removes the user from every enterprise organization, both as a member and as an outside collaborator. The GitHub user account itself isn’t deleted. Lumos marks the account Suspended. If an enterprise team still gives the user access to an organization, Lumos removes nothing and returns a conflict that names each organization and team. Remove the user from those enterprise teams first, then retry.
Notes and caveats:
  • GitHub’s org RBAC roles (all-repository read/write/triage/maintain/admin) are a different concept from the Organization Role field and don’t appear in that dropdown.
  • GitHub API rate limits apply (5,000 requests/hour for authenticated requests). Users with private emails may not have email data available. Secret teams may not be accessible. Outside collaborators may have limited data available.
  • Lumos reads Last Activity from your enterprise audit log, which GitHub only returns to an enterprise owner. If the connecting user isn’t an enterprise owner, GitHub returns a 403 and Last Activity stays empty, while accounts and permissions still sync. Accounts with no audit log event in the last 180 days have no Last Activity. Last Login isn’t synced. If you can’t grant enterprise owner, GitHub (Multi-Auth) reads Last Activity from each organization’s audit log instead.

Required plan and roles

  • Lumos plan: No minimum plan requirement is documented for this integration.
  • GitHub plan: No minimum GitHub plan is required. Provisioning works on standard GitHub organizations, and Enterprise isn’t a gate.
  • GitHub role: the connecting GitHub user must be an Organization Owner of your organizations. Otherwise no accounts or entitlements sync. To assign Enterprise Team roles, or to read enterprise-level SAML identities with Use SAML Identities on, the user must also be an enterprise owner.
  • Hosting: GitHub Cloud only. On-premise GitHub (self-hosted) instances aren’t supported. GitHub Enterprise Cloud with data residency (*.ghe.com) is supported, and Lumos targets the regional API host (https://api.<enterprise>.ghe.com).
  • OAuth scopes (requested automatically by Lumos during authorization):
    • admin:org: manage the organization and its teams, projects, and memberships (required for provisioning: invites, org/team role changes, member removal)
    • repo: full access to public and private repositories, required to read and manage repository collaborators. This scope is not read-only on GitHub’s side. GitHub offers no finer-grained read-only alternative for repo collaborator data.
    • read:audit_log: read the enterprise audit log for Last Activity (GitHub only returns it to an enterprise owner)
    • read:org: read organization membership, teams, and roles (baseline for user/entitlement sync)
    • read:enterprise: read enterprise-level SAML identities when Use SAML Identities is on
    • admin:enterprise: manage enterprise teams (required to assign and remove Enterprise Team roles)
    • user: read the connecting user’s profile, used to validate the connection
  • Read-only option: set Scope to Read on the connection card to turn off provisioning in Lumos. GitHub still grants the full scope set, so the token itself isn’t read-only.

Read-only access vs provisioning

Is read-only possible? Partly. Set Scope to Read on the connection card, and Lumos turns off its provisioning capabilities for the connection. Lumos always requests the full scope set during authorization, so GitHub grants the same write-capable token either way. What read-only requires. The same OAuth application and authorization as full provisioning, with Scope set to Read. What full provisioning requires. The full OAuth scope set Lumos requests automatically: admin:org (invites, org/team role changes, member removal), admin:enterprise (Enterprise Team roles), plus repo, read:org, read:enterprise, read:audit_log, and user. Follow the steps below and approve all requested scopes during authorization. Watch out for. Every connection’s token is write-capable on GitHub’s side, because Lumos always requests the full scope set, including repo and admin:org. Scope: Read only limits what Lumos does with it. Provisioning a new user can only invite a GitHub handle already tied to the requester’s email. Enterprise Team role changes go through the enterprise teams API and need the admin:enterprise scope, so a connection made before that scope was requested must be reconnected by an enterprise owner. A missing scope fails the sync instead of skipping the data. Lumos always requests the full scope set, so this is rare. If the token is missing a scope a capability needs, GitHub returns a 403 and Lumos ends that capability’s run with an error instead of skipping the resource. Whatever synced before that point is kept, but the run is marked failed. Reconnect and approve every requested scope during authorization.

Instructions

Phase 1: Prepare GitHub
  1. Log in to GitHub as an organization Administrator/Owner and create an OAuth Application for the Lumos connection:
    1. Go to GitHub Developer Settings, select OAuth Apps, and click New OAuth App.
    2. Enter an Application name and Homepage URL, and set the Authorization callback URL to https://app.lumosidentity.com/integrations/ics_oauth2_callback.
    3. Click Register application.
    4. Copy the Client ID. Then click Generate a new client secret and copy the secret. GitHub shows it only once, so save it right away.
  2. Check your organization’s Third-Party Application policy: if No Restriction is enabled, no action is needed. If Access Restriction is enabled, add/approve the new OAuth application (Lumos recommends that an admin account does this).
  3. Gather your Enterprise slug, the slug identifying your enterprise account at https://github.com/enterprises/. For https://github.com/enterprises/acme-corp, the slug is acme-corp.
Phase 2: Connect in Lumos
  1. In Lumos, go to Settings → Integrations → GitHub (reconnect an existing card or add a new one).
  2. Enter the Client ID and Client Secret from your OAuth application, and the Enterprise Slug (required).
  3. Optionally enable:
    • Exclude Outside Collaborators (default disabled). When enabled, outside collaborators aren’t synced.
    • Use SAML Identities (default disabled). Lumos reads user identity from your SAML IdP instead of GitHub profiles, matching accounts to corporate identity (e.g., IdP email) rather than GitHub username. Requires SAML SSO configured in the GitHub organization or enforced for your GitHub Enterprise.
      • Lumos reads identities from enterprise-level SAML SSO first. It falls back to organization-level SAML when the enterprise has no SAML identity provider or the token can’t read it.
      • Reading enterprise-level SAML identities requires the connecting GitHub user to be an enterprise owner. If SAML SSO is enforced at the enterprise level, connect the integration as an enterprise owner.
      • With enterprise SAML, a user who belongs to several organizations syncs as one account. The account is Active if the user is an active member of any organization, and Pending otherwise.
      • With enterprise SAML, organization members who have no linked SAML identity aren’t synced. Pending invitees and outside collaborators sync from their GitHub profiles.
  4. Click Connect and authorize in GitHub. Lumos requests the OAuth scopes listed above automatically.
Since August 14, 2026, GitHub issues expiring user tokens for OAuth apps (an eight-hour access token paired with a refresh token). Lumos stores the refresh token and renews the access token automatically, so no action is needed on your side. Connections created before that date received a non-expiring token and keep working unchanged. One connection syncs every organization GitHub returns for the connecting user, and there’s no setting to pick specific organizations. The list isn’t limited to the enterprise in Enterprise Slug. To include another organization, add the connecting user to it as an owner and approve the OAuth app for it, then wait for the next sync. You don’t need a second connection. The Classic connector (set up before September 2025) works differently. You enter your GitHub Organization Name (from your URL, so github.com/lumosapp gives lumosapp) instead of an enterprise slug, and you authorize through Lumos’s own OAuth app instead of one you create. For GitHub Enterprise, use the underlying organization name, not the enterprise name. Lumos requests only the admin:org and repo scopes, each connection covers a single organization, and Last Activity isn’t synced. To sync Last Activity, connect the current GitHub connector.

API Endpoints Used

Troubleshooting

401 Unauthorized on connect. Verify the OAuth Client ID and Client Secret. Verify the OAuth app is authorized in your organization (Settings → Third-party access → OAuth Apps). Ensure all required scopes were approved. “Resource not accessible by integration”. Verify the OAuth app/token has the necessary scopes (especially read:org) and that you aren’t hitting SSO requirements. “Enterprise ’…’ was not found” error. The Enterprise Slug doesn’t match an enterprise the connecting account can see. Check the slug in your enterprise’s GitHub URL and reconnect. “SAML enforcement” error. Authorize the OAuth app for SSO under Settings → Third-party access → OAuth Apps → Authorize and complete the SSO authorization flow so Lumos can access SAML data. “Organization ’…’ does not have SAML SSO configured” error. Use SAML Identities is on, but Lumos found no enterprise SAML identities it could read and the organization has no SAML SSO of its own. If SAML SSO is enforced at the GitHub Enterprise level, reconnect the integration with a GitHub account that is an enterprise owner. Otherwise configure SAML SSO on the organization, or turn off Use SAML Identities. “SAML identities stopped being readable during the sync” error. Lumos could read the enterprise SAML identities when the sync started but lost access partway through. Retry the sync. If it fails again, reconnect the integration with a GitHub account that is an enterprise owner. Integration shows 0 users. Usually a GitHub-side permission restriction. Confirm the connecting user is a GitHub Administrator who can view all users and org memberships (reconnect if unsure), and confirm the Lumos app is approved in your GitHub tenant. Last Activity is empty for every account. The connecting user isn’t an enterprise owner, so GitHub refuses the enterprise audit log with a 403. Reconnect as an enterprise owner, or use GitHub (Multi-Auth), which reads each organization’s audit log instead. Users not syncing. Verify the users are organization members (not only outside collaborators), have public or org-visible profiles, and have email addresses available. Most accounts show as Unmatched. GitHub doesn’t always return user email addresses, so users without public profile emails can’t be auto-matched. Enable SAML authentication in the GitHub org so Lumos can match identities that authenticate via SAML (if SAML is enabled but not required, users who don’t log in via SAML stay unmatched), or match the accounts manually. Account shows a personal email instead of the company email. Lumos prioritizes the public email field on the user’s GitHub profile. Match the account manually to the correct Lumos user if needed. Teams missing. Verify the teams aren’t secret, that the connecting user has team-admin or org-owner access, and that the teams have at least one member. Repository data incomplete. Verify admin access, confirm the repo scope was granted, and check the repositories aren’t archived. Sync reports an error at the repository stage. The connection is missing the repo scope. Lumos reads organizations, roles, teams, and members first and repositories last, so a token without repo gets a 403 when it reaches the repository stage. Organization and team data still syncs, but the entitlements and associations run is marked failed and repository roles don’t sync. Grant repo to read repository access, or accept the repository error if you’re running a read-only connection on purpose. A renamed repository shows up as new permissions. Lumos identifies repository permissions by name, as {organization}/{repository}/{role}. After a rename, the next sync adds the new name’s roles as new permissions, and the old name’s permissions stay in the list. Check that “Show in AppStore” is on for the new permissions, and turn it off for the old ones. See AppStore configuration settings. You want Lumos to skip one of your GitHub organizations. The connection has no setting to exclude an organization. Lumos syncs every organization the connecting user belongs to, and if one of them refuses Lumos, for example because of an IP allow list, the whole sync fails. To leave an organization out, remove the connecting user from it, or connect with a user who isn’t a member. Create Account fails with Expected entitlement type: ORG_ROLE, got: TEAM_ROLE. The workflow’s Organization Role field was set to a Team Role. Set it to an org membership role (Member for a standard new-hire invite). Click the inner Save in the Editing Steps box before the outer Save Changes, or the setting silently reverts. Provisioning fails for a new user. GitHub accounts are external accounts requiring invite acceptance, so Lumos can only invite a user whose email is already tied to an existing GitHub handle. Enterprise team roles show as not assignable. Either the team is linked to an identity provider group, which you can only change in your identity provider, or the connection was authorized without the admin:enterprise scope. For the second case, reconnect the integration as an enterprise owner and approve every requested scope. Delete fails with a conflict naming an organization and team. GitHub removes only a user’s direct organization membership. If an enterprise team still gives the user access, removing the membership would not revoke it, so Lumos changes nothing. Remove the user from the named enterprise teams (Unassign the Enterprise Team role), then retry the delete. Syncs fail after reauthenticating. A “needs reauthentication” prompt can coincide with an unrelated connector-side validation bug on the external identities response, and reauthenticating alone doesn’t fix it. If syncs still fail after reconnecting, contact support rather than assuming a credential problem. “Failed to forward OAuth callback to ICS” on connect. This generic error covers any failure after GitHub redirects back to Lumos. The two common causes are below.
  • GitHub rejected the Client ID or Client Secret during the token exchange. Copy both again from your OAuth App (generate a new secret if you no longer have it) and reconnect.
  • GitHub returned no organizations for the account. Confirm the Lumos OAuth app is authorized for SSO on every org (if SAML is enforced) and approved under third-party application access, and that you connect as an org Owner with the org selected during authorization.
The Repository column is always empty (Classic connector). On the Classic GitHub connector this is by design. It double-syncs repos as Repository (without associations) and Repo Access (with associations). Migrate to the current GitHub connector to populate it. Offboarding completed but the user is still active in GitHub. Offboarding only creates removal tasks for accounts that are matched to the departing identity. A GitHub account that synced without an email address stays unmatched, so it never falls inside the offboarding scope and no GitHub removal task is dispatched to your app admins. The offboarding itself still shows as completed because every matched account was actioned. Check the affected accounts under Unmatched in the GitHub app’s Accounts tab. GitHub members whose profile email is private arrive with no identifier for Lumos to correlate on. Close the gap at the source: enable SAML identity linking in the GitHub organization (see Use SAML Identities in Phase 2) so member identities are exposed for auto-matching, add an account-to-identity matching rule using an alternate identifier such as the GitHub username, or match the accounts manually. Matching an account after the fact does not retroactively offboard it, so for anyone who has already departed, confirm directly in GitHub that their organization access is revoked. Reclaiming inactive GitHub Copilot licenses. The GitHub connector reports organization-level activity drawn from the enterprise audit log and does not expose a Copilot-specific usage signal, so Lumos cannot identify idle Copilot seats on its own. If you already produce Copilot usage data outside Lumos, you can still drive the removal through Lumos. Have your external job call a Lumos deprovisioning webhook or the Lumos REST API to trigger the removal action on whichever app grants the seat. Where Copilot access is granted through an on-prem Active Directory group rather than in GitHub, the removal runs as an Unassign Entitlement against that group through the On-Prem Agent, and the service account needs write permission on the group. Automated removals only target accounts that are matched to a Lumos identity. If some users sit outside your connector’s configured search scope, widen that scope or match them before relying on the automation.