GitHub: how do I make a user an admin of an organization?

后端 未结 3 695
借酒劲吻你
借酒劲吻你 2020-12-09 12:23

I need to transfer a repository from a user account to an organization the user is a member of. Per GitHUb\'s docs, I need to make the user account an admin of the organiza

相关标签:
3条回答
  • 2020-12-09 12:34

    Team memberships have somewhat limited permissions scopes to individually named repositories.

    If you want to set someone as an admin for the entire organization:

    1. Navigate to the Organization > People

    2. Identify the member you want to update and click on the settings cog

    3. Set role to Owner

    0 讨论(0)
  • 2020-12-09 12:49

    Access levels in GitHub are configured per Team inside the Organization.

    1. Log into GitHub.

    2. Switch your account context to the organization using the dropdown near the top-left of the screen:

    3. Click on "View organization":

    4. Click the Teams tab in the top navigation bar:

    5. Decide whether you want to change the permissions of an existing team (and all of its members) or to create a new team for a single user.

      • If you are modifying an existing Team,

        1. click on the Team name,

        2. then click the gear icon at the top right,

        3. then change the Team's access to Admin and

        4. click Update.

      • If you are creating a new Team,

        1. click the New Team button,

        2. give the Team an appropriate name,

        3. set its access to Admin and

        4. click Create Team.

    0 讨论(0)
  • 2020-12-09 12:51

    Note that since June 2017, you can apply an Admin access right to a sub-team (instead of one giant unique team as before)

    See "Nested teams add depth to your team structure":

    Child teams inherit their parent's access permissions, so repository permissions and @mentioning among nested teams work from top to bottom.
    If your team structure is Employees > Engineering > Application Engineering > Identity, granting Engineering write access to a repository means Application Engineering and Identity also get that access.

    So that is another way to assign a user admin right: make him/her part of a sub-sub team called "admins" within an organization.

    Official GitHub Documentation: Nested Teams.

    0 讨论(0)
提交回复
热议问题