👋 We've unified all of GitHub's product documentation in one place! Check out the content for REST API, GraphQL API, and Developers. Learn more on the GitHub blog.
Article version: Enterprise Server 2.20

Removing users from teams and organizations

If a member of your organization no longer requires access to certain repositories, you can remove them from the team that allows that access. If a member of your organization no longer requires access to any repositories owned by the organization, you can remove them from the organization.

In this article

Were you able to find what you were looking for?

Only owners or team admins can remove organization members. When a user is removed from a team or organization, their issues, pull requests, and comments in the organization's repositories remain intact and are still attributed to the user.

Warning: When you remove a user from an organization, they will lose access to any private forks they have of your organization's private repositories. They may still have local copies of those forks. However, they will be unable to sync them with your organization's repositories. You are responsible for ensuring that people who have lost access to a repository delete any confidential information or intellectual property. If the user removed from your organization was an organization member, their access to private forks of organization repositories can be restored if the user is reinstated as an organization member within three months of being removed from an organization.

Removing a team member

Note: A team that's synced to an LDAP group is indicated with a special LDAP badge. The member list for an LDAP synced team can only be managed from the LDAP group it's mapped to.

To remove an existing member of a team synced to an LDAP group, contact your LDAP administrator.

  1. In the top right corner of GitHub Enterprise Server, click your profile photo, then click Your profile.
    Profile photo
  2. On the left side of your profile page, under "Organizations", click the icon for your organization.
    organization icons
  3. Under your organization name, click Teams.
    Teams tab
  4. On the Teams tab, click the name of the team.
    List of the organization's teams
  5. Select the person or people you'd like to remove.
    Check box next to organization member
  6. Above the list of team members, use the drop-down menu and click Remove from team.
    Drop-down menu with option to change role

Removing a user from an organization

  1. In the top right corner of GitHub Enterprise Server, click your profile photo, then click Your profile.
    Profile photo
  2. On the left side of your profile page, under "Organizations", click the icon for your organization.
    organization icons
  3. Under your organization name, click People.
    The People tab
  4. Next to the name of the users you want to remove from the organization, click the check box.
    Remove user checkbox
  5. At the top of the page, under the organization name, click Remove from organization.
    Remove from organization button

Note: When you remove a user from your organization, their membership data is saved for three months. You can restore their data, or any private forks they owned of your organization's repositories, if you invite the user to rejoin the organization within that time frame. For more information, see "Reinstating a former member of your organization."

Were you able to find what you were looking for?

Ask a human

Can't find what you're looking for?

Contact us