Repository members and roles
Access to a repository is given to a person by login with one of five roles, as on GitHub — Read, Triage, Write, Maintain or Admin.
In this article
The «Access» page#
Settings → Access is one table of people and teams, like «Collaborators and teams» on GitHub.
- At the top are three badges: the repository visibility, the organization base permission (for an organization's repository) and direct access — how many people and teams are admitted directly.
- Below is the table: the owner, people and teams. Each row says where the role comes from: repository owner, «direct» or «team». The role is changed by a choice right in the row, and access is removed with the cross.
- Search by name and a filter by role are above the table.
Give access#
- Settings → Access.
- At the bottom of the table enter the person's login and pick a role; for an organization's repository, access for a team is granted there too.
- Confirm. The person sees the repository in their list; a private repository becomes available to them.
Roles#
Each role includes everything the role above it in the table can do.
| Role | What it adds |
|---|---|
| Read | open files and history, clone, open issues and comment |
| Triage | manage issues and pull requests: labels, assignees, milestones, closing and reopening — without writing code |
| Write | edit files, create branches, push changes, merge pull requests, publish releases |
| Maintain | general settings: description and topics, branch protection — without access to members and the danger zone |
| Admin | everything: members and teams, name and visibility, review requirements, webhooks, deleting and transferring the repository |
What each role can do#
| Action | Read | Triage | Write | Maintain | Admin |
|---|---|---|---|---|---|
| See a private repository, clone | ✓ | ✓ | ✓ | ✓ | ✓ |
| Open issues, comment | ✓ | ✓ | ✓ | ✓ | ✓ |
| Fork (an organization's private repository — if it allows) | ✓ | ✓ | ✓ | ✓ | ✓ |
| Labels, assignees, milestones | — | ✓ | ✓ | ✓ | ✓ |
| Close and reopen other people's issues and pull requests | — | ✓ | ✓ | ✓ | ✓ |
| Lock a discussion for new comments | — | ✓ | ✓ | ✓ | ✓ |
| Write in a locked discussion | — | — | ✓ | ✓ | ✓ |
| Hide other people's comments | — | — | ✓ | ✓ | ✓ |
| Edit files, push, branches | — | — | ✓ | ✓ | ✓ |
| Merge pull requests, publish releases | — | — | ✓ | ✓ | ✓ |
| Description, topics, branch protection | — | — | — | ✓ | ✓ |
| Members and teams | — | — | — | — | ✓ |
| Name, visibility, review requirements | — | — | — | — | ✓ |
| Webhooks | — | — | — | — | ✓ |
| Delete or transfer the repository | — | — | — | — | ✓ |
An organization policy can take visibility, deletion and transfer away from admins — see member privileges.
Organization roles on top of repository roles#
| Organization role | What it adds in all its repositories |
|---|---|
| Owner | admin |
| Moderator | lock discussions, hide comments, write in locked ones, block people in the organization |
| Security manager | read all repositories, including private ones |
| Read / Triage / Write / Maintain / Admin of all repositories | that role in every repository |
| Member | the organization base permission: none, read, write or admin |
The repository owner is always an admin. In an organization's repository its owners are admins of all its repositories.
Change a role or remove access#
Each row of the access table has a role choice and a cross. Changes take effect at once; the person's tokens and keys stop granting the removed right for this repository.
Organizations#
For an organization's repository access can be given to a whole team with the same five roles, and the base permission of all organization members is set in the member privileges. If a person has several rights — direct, through a team, base — the broadest one applies.
Was this helpful?