MSBA-290 · Lesson 6 of 12 · 25 min

Enterprise and organization roles

▶ Video coming soon A video version of this lesson is on the way.

Freya opened the sixth session with a spreadsheet nobody enjoyed reading. Across Skerry's 14 organizations there were 61 organization owners. Some were former managers, some were automation accounts, and one was a developer who had been made an owner in 2020 to fix a webhook and never removed. Each of those 61 accounts could delete repositories, change security settings and remove other owners. "Identity tells us who someone is," she said. "Roles decide how much damage a mistake or a stolen token can do. We are going to get that number down to single digits."

Roles at three levels

GitHub grants administrative power at three levels. Enterprise roles control the enterprise account and its settings. Organization roles control a single organization. Repository roles control access to code, which MSBA-161 introduced and lesson 7 extends with custom roles. A person can hold different roles at each level, and power at one level does not automatically give power at another. In particular, being an enterprise owner does not, by default, let someone see the code inside an organization.

Three stacked bands. Top band, enterprise roles: owner, billing manager, app manager, security manager in preview, custom enterprise roles in preview, user. Middle band, organization roles: owner, member, moderator, billing manager, security manager, custom organization roles. Bottom band, repository roles: read, triage, write, maintain, admin, custom repository roles. A note says roles at one level do not grant content access at another.
Roles exist at the enterprise, organization and repository levels, each with predefined and custom options.

Enterprise roles

Enterprise roles decide who can change enterprise settings. The table summarizes the roles GitHub documents for Enterprise Cloud as of November 2026.

Enterprise roles in GitHub Enterprise Cloud.
Enterprise roleWhat it can doNotes
Enterprise ownerComplete control of the enterprise: administrators, organizations, billing, policies, identity, audit logCannot see organization content by default, but can join any organization
Billing managerView and manage billing settings, licensing and usage-based billingNo access to organization settings or content
App managerCreate, edit and delete GitHub App registrations owned by the enterpriseCannot install or uninstall apps
Security managerManage security configurations, alerts, dashboards and campaigns across the enterprise; read code in all repositoriesIn public preview and subject to change
Custom enterprise rolesA chosen set of fine-grained permissions for enterprise settingsIn public preview; not every predefined capability can be replicated
UserNo enterprise administration by default; access comes from organizationsUnaffiliated users and guest collaborators are special cases

The separation between ownership and content is deliberate. An enterprise owner who wants to look inside an organization must add themselves to it, an action that appears in the audit log and that organization owners can see. Skerry decided that its four enterprise owners would join organizations only during incidents, and that the security team would get the security manager role instead of ownership for its daily work of reviewing alerts.

Organization roles

Organization roles are the ones most people in a company actually hold. Every organization member has at least the member role; a few hold more.

Organization roles.
Organization roleWhat it can do
OwnerFull administrative control of the organization, including members, teams, billing, settings and deletion
MemberCreate and work in repositories according to the organization's settings, base permission and team access
ModeratorBlock and unblock non-members, set interaction limits and hide comments in public repositories
Billing managerView and manage the organization's billing settings without other access
Security managerView and manage security alerts and settings across the organization, with read access to every repository
Custom organization roleA chosen set of fine-grained organization permissions

GitHub also offers predefined organization roles that grant a common bundle of permissions across every repository in the organization, for example read or write access to all repositories, or administration of CI/CD settings, so that a platform team does not have to be added to hundreds of repositories one by one. And custom organization roles let owners combine fine-grained permissions, such as managing organization webhooks, viewing the organization audit log, or managing Actions runners and secrets, into a role that fits a real job. Enterprise owners can create custom organization roles for use across the enterprise, but only organization owners assign them, and organization owners cannot change roles defined at the enterprise level.

Worked problem

Replacing an owner with a custom role

In the stores organization, a release engineer is an owner only because she manages self-hosted runners and organization secrets for the build pipeline. What should replace her ownership?

Show solution
  1. List what she actually does: runners, runner groups and organization secrets.
  2. Create a custom organization role with only those fine-grained permissions.
  3. Assign the role to her, or to a release-engineering team so it survives staff changes.
  4. Remove her owner role and confirm in the audit log that her pipeline work still succeeds.

Answer: A custom organization role for runners and secrets, assigned to a team, with her ownership removed.

Assigning roles to teams

Roles can be assigned to individuals or to teams, and assigning them to teams is almost always better. A team assignment documents why the access exists ("the release-engineering team manages runners"), survives people changing jobs, and in a managed users enterprise can be driven from an IdP group so that the identity team's access reviews cover it. Skerry set a rule: no individual role assignments except owners, and every owner assignment is backed by an Entra ID group reviewed quarterly.

Least privilege in practice

The principle of least privilege says each person and each automation should have only the access its job needs. Applied to GitHub administration, it leads to a few concrete habits.

Least-privilege habits for GitHub administration.
HabitWhy it matters
Keep enterprise and organization owners to a small named group, with at least two per organizationOwners can do anything; two avoids a single point of failure
Use billing manager, security manager and app manager roles instead of ownershipSpecialist work does not need full control
Use custom organization roles for recurring tasksGrants exactly the needed permissions
Assign roles to teams backed by IdP groupsAccess reviews in the IdP cover GitHub
Give automation GitHub Apps with narrow permissions rather than owner accountsA stolen token can do far less
Review role assignments on a scheduleAccess drifts as people change jobs

Auditing access and permissions

The GH-100 study guide asks administrators to audit access and permissions, not just grant them. GitHub gives several ways to see who has what. The enterprise People page lists members and their roles across organizations, and can be exported. Each organization's People page shows roles, two-factor status for personal accounts and the organizations a member belongs to. A repository's access page shows the effective permission of each person and team, including a warning when someone has mixed roles from different sources. The audit log records every change in roles and memberships. And the REST and GraphQL APIs expose all of it for scripted reviews.

A script for the quarterly owner review. In GraphQL, organization owners have the role ADMIN.
# Owners of every organization in an enterprise (GitHub CLI and GraphQL)
gh api graphql --paginate -f query='
query($cursor: String) {
  enterprise(slug: "skerry") {
    organizations(first: 25, after: $cursor) {
      pageInfo { hasNextPage endCursor }
      nodes {
        login
        membersWithRole(first: 100) {
          edges { role node { login } }
        }
      }
    }
  }
}' --jq '.data.enterprise.organizations.nodes[]
  | {org: .login, owners: [.membersWithRole.edges[] | select(.role=="ADMIN") | .node.login]}'

Worked problem

Counting the reduction

Skerry had 61 organization owners across 14 organizations. The new design has three organizations, each with the same three platform owners plus one organization-specific owner, and four enterprise owners, two of whom are among the platform owners. How many distinct people hold an owner role at either level?

Show solution
  1. Organization owners: 3 shared platform owners plus 1 specific owner in each of 3 organizations, so 3 + 3 = 6 people.
  2. Enterprise owners: 4 people, 2 of whom are already counted.
  3. Add the 2 new enterprise owners: 6 + 2 = 8.

Answer: 8 distinct people, down from 61.

Freya ran the owner script against the old organizations. Of the 61 owners, 9 were people who had left Skerry but whose personal accounts were still members, 7 were automation accounts that should have been GitHub Apps, and 22 had not used any owner capability in the audit log during the previous 180 days. That last number was the strongest argument for least privilege she could have asked for.

Roles and the support boundary

One more distinction matters for the exam. Some problems are for administrators to solve, such as a developer who cannot see a repository because their team lacks access, and some are for GitHub Support, such as a platform outage or an account locked in a way no owner can fix. Knowing which roles can do what is how an administrator decides quickly whether a problem is theirs. Lesson 11 returns to the support boundary.

Organization owners and the two-owner rule

GitHub recommends that every organization have at least two owners, and the reason is practical. If the only owner leaves, is unavailable during an incident, or loses access, nobody can change members, settings or billing without GitHub Support. Two owners also make it possible to require that sensitive changes be made by one and checked by the other, a habit auditors look for. More than a handful of owners has the opposite problem: each extra owner is another account whose compromise would give an attacker full control. Skerry settled on three platform owners shared across organizations plus one owner from the business area of each organization, all provisioned from an Entra ID group with quarterly reviews.

Break-glass access

Even a carefully designed role model needs an emergency path. A break-glass arrangement gives a small, named group the ability to act with high privilege during an incident, under conditions that make the use visible: the access is granted only when needed, every use is logged, and someone reviews it afterwards. At Skerry, the platform-oncall enterprise team was the bypass actor on rulesets, and enterprise ownership itself was held by the four people in the GitHub-Enterprise-Owners Entra ID group. Any use of a ruleset bypass created an audit event that the SIEM report from lesson 9 flagged within the hour.

Matching jobs to roles instead of granting ownership.
JobRole at SkerryWhy not ownership
Reviewing security alerts across all repositoriesSecurity managerNeeds alerts and read access, not settings
Managing invoices and cost centersBilling managerNeeds billing only
Registering the deployment GitHub AppApp managerNeeds app registrations, not installations or settings
Managing runners and organization secretsCustom organization roleNeeds two areas of settings only
Moderating the open source organizationModeratorNeeds community tools only
Emergency ruleset bypassplatform-oncall enterprise team as bypass actorNeeded only during incidents, and logged

Worked problem

Reviewing a role request

A data engineering lead asks to be made an owner of the skerry organization so she can see the audit log for her team's repositories during an investigation. What should the platform team offer instead?

Show solution
  1. Her need is to read audit events, not to change settings.
  2. A custom organization role can grant permission to view the organization audit log.
  3. Alternatively, the security team can run the query in the SIEM and share the results.
  4. Either option avoids giving full ownership for a read-only need.

Answer: A custom organization role with audit log viewing, or a SIEM query run for her, instead of ownership.

The security manager role in practice

The security manager role deserves a closer look because it is often the right answer to "the security team needs access". At the organization level it gives a team the ability to view and manage security alerts and settings across every repository, with read access to all of them, without any ability to change members, billing or other settings. At the enterprise level, still in public preview as of November 2026, it extends to security configurations, alerts, dashboards and security campaigns across the enterprise. Because it includes read access to code in every repository, it is a powerful role in its own right, and Skerry assigned it only to its five-person security team through an Entra ID group, reviewed quarterly like ownership.

Outside collaborators and roles

In enterprises with personal accounts, outside collaborators deserve their own line in any role design. They are not organization members, so organization roles do not apply to them; they hold repository roles only, on the repositories where they are added. That makes them convenient for a contractor who needs one repository, and risky when they accumulate: an outside collaborator added to twenty repositories over two years is effectively a member nobody reviews. Owners can restrict who may invite outside collaborators through an enterprise policy, and the organization People page lists them separately so they can be reviewed. In a managed users enterprise the guest collaborator role replaces this pattern, with the IdP as the source of truth.

Worked problem

An access review finding

During Freya's review of the old enterprise, one contractor's personal account turned out to be an outside collaborator on 23 repositories across three organizations, although her contract covered only two of them. What should happen, and what prevents it in the new enterprise?

Show solution
  1. Remove her from the 21 repositories outside her contract, keeping the two she needs.
  2. Check the audit log for when and by whom each access was granted, to fix the process that allowed it.
  3. In the new enterprise she is provisioned as a guest collaborator through her agency's Entra ID group.
  4. Repository access is granted to the agency group's team only on contracted repositories, and reviewed in the IdP.

Answer: Trim her access to the two contracted repositories now; in the new enterprise, the guest collaborator role and IdP group make the access reviewable.

Common mistakes

  • MistakeAssuming enterprise owners can read every repository.

    InsteadEnterprise owners must join an organization to see its content.

  • MistakeMaking someone an organization owner to fix a single setting.

    InsteadUse a specialist or custom role with only the needed permissions.

  • MistakeAssigning roles to individuals.

    InsteadAssign them to teams, ideally driven by IdP groups, so reviews cover them.

  • MistakeUsing a human owner account for automation.

    InsteadUse a GitHub App with narrow permissions.

Summary and key terms

  • Roles exist at the enterprise, organization and repository levels.
  • Enterprise owners control everything about the enterprise but do not see organization content by default.
  • Billing manager, app manager, security manager and custom enterprise roles cover specialist work; the last two are in preview.
  • Organization roles include owner, member, moderator, billing manager and security manager, plus predefined and custom roles.
  • Assign roles to IdP-backed teams and follow least privilege.
  • Audit access through People pages, repository access views, the audit log and the API.
Enterprise owner
A role with complete control of an enterprise account.
Security manager
A role that manages security alerts and settings with read access to code.
App manager
An enterprise role that manages the enterprise's GitHub App registrations.
Custom organization role
An organization role built from chosen fine-grained permissions.
Predefined organization role
A ready-made organization role that grants a bundle of permissions across all repositories.
Least privilege
Giving each person or system only the access its job needs.
Mixed roles
A warning that a person has conflicting access to a repository from different sources.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. What must an enterprise owner do to view code in an organization?

    Show answer

    Join the organization, which is recorded in the audit log.

  2. Which enterprise role manages GitHub App registrations but cannot install apps?

    Show answer

    App manager.

  3. Why assign roles to teams?

    Show answer

    It documents the reason, survives staff changes and lets IdP access reviews cover it.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz