GitHub: how do I make a user an admin of an organi

2020-02-04 20:21发布

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 organization first.

GitHub's docs describe the different levels of access to an organization, but I can't find out how to actually change a user's level of access to an organisation.

How can I make the organization member an admin?

2条回答
祖国的老花朵
2楼-- · 2020-02-04 21:09

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":

nested teams

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.

查看更多
来,给爷笑一个
3楼-- · 2020-02-04 21:11

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 the Teams tab at the far right of the tab bar.
  4. 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.
查看更多
登录 后发表回答