Organization Roles and Teams: Assign Minimum Access
Start with responsibilities
The fictional Garden organization owns two private repositories: garden and release. Documentation contributors edit garden, support staff triage issues, and a release administrator manages release. The goal is to assign access by responsibility rather than make everyone an administrator. A GitHub organization is a shared ownership and administration boundary; a team groups organization members. Organization ownership is different from repository administration.
Choose repository roles
The predefined repository roles progress from Read to Triage, Write, Maintain and Admin. Read permits viewing; Triage supports issue and pull request management without ordinary code write access; Write supports contributions; Maintain supports repository management without all sensitive administrative powers; Admin has broad repository control. Exact permissions, custom roles and exceptions depend on the product and configuration. Prefer the lowest suitable role, not the highest convenient one.
Inspect all grant paths
Base permissions apply to organization members, not outside collaborators. Team grants, direct grants and inherited team access can overlap. An outside collaborator can receive repository access without joining the organization team. Removing one team grant may leave another grant intact. Inspect membership, nested teams, direct access and base permission before concluding that access was removed.
Predict effective access
In this mock matrix, Mina is a member of docs and support, Sam belongs to support, and Lee is an outside collaborator with a direct read grant. The mock selects the highest ordinary role from applicable paths and assumes private repositories, no owners, custom roles or nested teams. Predict Mina’s access to garden (write), Sam’s (triage), Lee’s (read), and an unknown person’s (none). The release repository has only the base grant for members. This JSON is teaching data, not a GitHub API payload.
{ "base": "read", "teams": { "docs": { "garden": "write" }, "support": { "garden": "triage" } }, "members": { "mina": [ "docs", "support" ], "sam": [ "support" ] }, "direct": { "lee": { "garden": "read" } }}Practice and verify
Remove Mina from docs in the offline model. Her garden access becomes triage, not none. If she leaves both teams but remains an organization member, read remains through base permissions. In a real authorized organization, review effective access with an owner, record the intended grant and verify the result after a change. Do not test by changing a real organization during this lesson.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Organization Roles and Teams: Assign Minimum Access — knowledge check
Reason about organization access, identity lifecycle and governance.
Who needs repository Admin in the fictional organization?
Which predefined role is suited to issue triage without code write?
Which people receive organization base permission?
Mina loses docs but retains support. What access remains in the model?
What should you inspect before declaring access removed?