Skip to main content

Support GitHub Enterprise teams in access and login policies

Our Spacelift stack uses “GitHub SSO with SAML/OIDC” to provision access to our Spacelift tenant. Organization GitHub teams are passed through to Spacelift and accessible via input.session.teams in login and access policies, but a GitHub enterprise team which has been assigned to the organization is not assigned to input.session.teams . Here is the API output for one of our enterprise teams:

{
  "name": "Mozilla staff",
  "id": 19266226,
  "node_id": "ET_kwDNG0XOASX6sg",
  "slug": "ent:mozilla-staff",
  "description": "All Mozilla staff with GitHub accounts. Managed by Terraform in https://github.com/mozilla/global-platform-admin",
  "privacy": "closed",
  "notification_setting": "notifications_enabled",
  "url": "https://api.github.com/enterprises/mozilla-corporation/teams/19266226",
  "html_url": "https://github.com/orgs/mozilla/teams/ent:mozilla-staff",
  "members_url": "https://api.github.com/enterprises/mozilla-corporation/teams/19266226/memberships{/member}",
  "repositories_url": "https://api.github.com/enterprises/mozilla-corporation/teams/19266226/repos",
  "type": "enterprise",
  "enterprise_id": 6981,
  "permission": "pull",
  "created_at": "2026-08-31T22:44:59Z",
  "updated_at": "2026-08-31T22:44:59Z",
  "members_count": 926,
  "repos_count": 8,
  "organization": {
    "login": "mozilla",
    "id": 131524,
    "node_id": "MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==",
    "url": "https://api.github.com/orgs/mozilla",
    "repos_url": "https://api.github.com/orgs/mozilla/repos",
    "events_url": "https://api.github.com/orgs/mozilla/events",
    "hooks_url": "https://api.github.com/orgs/mozilla/hooks",
    "issues_url": "https://api.github.com/orgs/mozilla/issues",
    "members_url": "https://api.github.com/orgs/mozilla/members{/member}",
    "public_members_url": "https://api.github.com/orgs/mozilla/public_members{/member}",
    "avatar_url": "https://avatars.githubusercontent.com/u/131524?v=4",
    "description": "This technology could fall into the right hands.",
    "name": "Mozilla",
    "company": null,
    "blog": "https://www.mozilla.org/",
    "location": "Mountain View, California",
    "email": null,
    "twitter_username": null,
    "is_verified": false,
    "has_organization_projects": true,
    "has_repository_projects": true,
    "public_repos": 2586,
    "public_gists": 0,
    "followers": 10968,
    "following": 0,
    "html_url": "https://github.com/mozilla",
    "created_at": "2009-09-26T08:22:18Z",
    "updated_at": "2026-07-07T18:56:34Z",
    "archived_at": null,
    "type": "Organization"
  },
  "parent": null
}
Workaround
Problem

Log in to comment and vote

No comments yet

Be the first to share your thoughts.