Skip to main content
Permissions on GitHub follow a cascading model: policies set at higher levels establish absolute limits that lower levels must obey. Think of it as a combination of an organizational chart and a building access control system — the top defines the maximum possible access, and everything beneath it can only be as permissive as that top-level setting.
A slide titled "Permissions on GitHub" featuring the GitHub logo, a label "A cascading structure," and a highlighted box reading "Higher-level policies." Blue lines branch downward from the box, illustrating a cascading or hierarchical permission structure.
Understanding this flow is essential when designing secure, least-privilege access across an enterprise. Below we trace how global rules propagate from the enterprise account down to nested teams and individual repositories.
Higher-level policies define the maximum allowed permissions. Lower-level administrators can make rules more restrictive but cannot grant permissions that exceed those limits.

Enterprise level

  • The enterprise owner acts like the CEO: responsible for company-wide security, compliance, and policy defaults that apply across all organizations and repositories in the enterprise.
  • Example: If the enterprise policy forbids public repositories, no organization, team, or repository under that enterprise can make a repo public.

Organization level

  • Organization owners (similar to VPs running a department) manage and enforce policies for their organization. They can tighten restrictions relative to the enterprise, but they cannot make policies more permissive than enterprise-level controls.
  • Use organization-level settings to apply departmental defaults (e.g., required SSO enforcement, repository visibility rules, or branch protection baselines).
A slide titled "The Organization Level" showing a highlighted "Organization" menu item, a "VP of engineering" label with the text "Runs the department's access" and a purple badge "Within the CEO's rules." Below is a horizontal slider indicating access settings from "More restrictive" to "More permissive."

Team level

  • Teams group users for scalable permission grants across multiple repositories.
  • Roles inside a team:
    • Team members — receive the access that the team grants to repos.
    • Team maintainers — manage the team (rename, add/remove members, update team settings).
  • Teams make it simpler to apply consistent access to a set of repositories for a department or feature group.
A diagram titled "The Team Level" showing a payments-team box with four user icons linked by arrows to repositories labeled payment-api, payment-web, and payment-docs. The left sidebar highlights the "Team" level and the graphic also shows icons for a team member and a team maintainer.

Nested teams

  • Child teams inherit repository permissions from their parent teams automatically.
  • This inheritance lets you model departmental hierarchies: grants to a parent (e.g., backend-engineering) flow to children (payments-team) without duplicating configuration.
  • Use nested teams to represent sub-functions or feature squads while preserving consistent access controls.
A slide titled "Nested Teams Inherit" showing an "Engineering floor" group with a parent team labeled "backend-engineering" and a connected child team labeled "payments-team." Small icons indicate team membership and there's a © Copyright KodeKloud mark in the corner.

Outside collaborators

  • Outside collaborators are external contributors (vendors, contractors) granted explicit access to one or more repositories without being added to your organization’s user directory.
  • They are suitable for temporary, limited access where directory membership or broader access is not desirable.
  • Outside collaborators only have access to the repositories they are explicitly granted; they cannot inherit organization or team-level permissions.
A slide titled "Outside Collaborators" showing a diagram of an external vendor contractor with a temporary guest badge, limited access to a single repository (vendor-integration), and a company directory list. The left side shows a dotted hierarchy box with Enterprise, Organization, Team, and Nested team levels.

Custom roles

  • When built-in roles are too broad or too narrow, GitHub supports custom roles (available depending on your plan and product).
  • Create custom roles to grant only the permissions a user needs (for example, a role that includes only the Approve deployments permission rather than full admin rights).
  • Custom roles help implement least-privilege access and reduce blast radius from overly broad permissions.
A presentation slide titled "Custom Roles" comparing a full admin permissions list with a smaller custom role called "Deployment approval." It highlights that instead of broad admin rights, a user only needs the single "Approve deployments" permission.
Custom roles are not identical across every GitHub plan. Verify that your account type and product edition support the specific custom role features you need before relying on them for critical workflows.

Quick reference table

Best practices

  • Define enterprise-wide security and visibility defaults first, then tighten at the organization level where necessary.
  • Use teams and nested teams to model your org structure and to grant permissions consistently.
  • Prefer custom roles or targeted team permissions over granting broad administrative rights.
  • Use outside collaborators for temporary vendor access so you avoid adding external users to your directory.
Summary
  • Permission flow: enterprise → organization → team → nested teams → repository/collaborator.
  • Lower levels may only restrict or remain within the limits set above; they cannot increase privileges beyond higher-level policies.
  • Use nested teams and custom roles to provide precise, least-privilege access without granting unnecessary administrative rights.

Watch Video