← All permissions
Organization permission·members:write
Members: Write
Tier 0 · Critical
Why Tier 0
Invites people and sets membership, including the owner role, removes members or turns them into outside collaborators, manages teams and their members, provisions users through SCIM, and assigns organization roles to users and teams, among them the predefined All-repository admin role. Giving a team access to a repository also needs Administration (write). This is who controls the organization.
- Target
- Organization
- Plane
- ControlIdentity: Members, teams, SCIM provisioning and the credentials attached to an account.
- Granted by
- Fine-grained PAT, GitHub App
- Available on
- Every setup
What it unlocks
41 REST endpoints need this permission, from GitHub's docs data. Some also need another permission, and a few work with only one kind of token.
- POST /orgs/{org}/invitations
- DELETE /orgs/{org}/invitations/{invitation_id}
- DELETE /orgs/{org}/members/{username}
- PUT /orgs/{org}/memberships/{username}
- DELETE /orgs/{org}/memberships/{username}
- DELETE /orgs/{org}/organization-roles/teams/{team_slug}
- PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}
- DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}
- DELETE /orgs/{org}/organization-roles/users/{username}
- PUT /orgs/{org}/organization-roles/users/{username}/{role_id}
- DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}
- PUT /orgs/{org}/outside_collaborators/{username}
- DELETE /orgs/{org}/outside_collaborators/{username}
- PUT /orgs/{org}/public_members/{username}user access tokens only
- DELETE /orgs/{org}/public_members/{username}user access tokens only
- POST /orgs/{org}/teams
- PATCH /orgs/{org}/teams/{team_slug}
- DELETE /orgs/{org}/teams/{team_slug}
- PATCH /orgs/{org}/teams/{team_slug}/external-groups
- DELETE /orgs/{org}/teams/{team_slug}/external-groups
- PUT /orgs/{org}/teams/{team_slug}/memberships/{username}
- DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}
- PATCH /orgs/{org}/teams/{team_slug}/team-sync/group-mappings
- POST /scim/v2/organizations/{org}/Users
- PUT /scim/v2/organizations/{org}/Users/{scim_user_id}
- PATCH /scim/v2/organizations/{org}/Users/{scim_user_id}
- DELETE /scim/v2/organizations/{org}/Users/{scim_user_id}
- PATCH /teams/{team_id}
- DELETE /teams/{team_id}
- PUT /teams/{team_id}/members/{username}
- DELETE /teams/{team_id}/members/{username}
- PUT /teams/{team_id}/memberships/{username}
- DELETE /teams/{team_id}/memberships/{username}
- PATCH /teams/{team_id}/team-sync/group-mappings
- PATCH /user/memberships/orgs/{org}user access tokens only
- GET /orgs/{org}/external-group/{group_id}
- GET /orgs/{org}/external-groups
- GET /orgs/{org}/team-sync/groups
- GET /orgs/{org}/teams/{team_slug}/external-groups
- GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings
- GET /teams/{team_id}/team-sync/group-mappings
Roles that include it
- T0OwnerThe organization and every repository in it
- T1Security managerThe organization and every repository in it(in part: Creates a team. Giving it repository access needs a repository admin.)
- T1App managerGitHub Apps owned by the organization(in part: Creates a team. Giving it repository access needs a repository admin.)
- T1Team maintainerOne team and the repositories it has(in part: Only for their own team, but anyone they add gets every repository role the team holds. On a team with Admin on production repositories, that is a path to those repositories.)
- T2MemberThe organization(in part: Creates a team. Giving it repository access needs a repository admin.)
- T2ModeratorThe organization's public spaces(in part: Creates a team. Giving it repository access needs a repository admin.)
Classic scopes that reach it
- T0admin:orgdocumented
Attack paths
Techniques it enables
- Add a guest collaborator or new app Keep access
Escalations it starts
- Add a collaborator or guest that outlives the attack: Access that survives password resets and token revocation.
Reached through
- Install your own App in an enterprise organization · from Enterprise organization installations: Write (enterprise)
- Join any organization as an enterprise owner · from The Enterprise owner role
Fixed or limited by
- Restrict public repo creation, visibility changes, repo deletion, private forks and outside collaborator invites to owners
- Run a quarterly access review of owners, repo admins, team membership and outside collaborators
- Review every currently installed GitHub App / OAuth App and its granted scope
- Keep OAuth app access restrictions on and require security/IT approval for new apps