
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).

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.

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.

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.

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 deploymentspermission rather than full admin rights). - Custom roles help implement least-privilege access and reduce blast radius from overly broad permissions.

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.
Links and references
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.