ghtier
← 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}

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

Attack paths

Other levels

GitHub Docs: Organization permissions for "Members"