问题
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?
回答1:
Access levels in GitHub are configured per Team inside the Organization.
- Log into GitHub.
- Switch your account context to the organization using the dropdown near the top-left of the screen.
- Click the Teams tab at the far right of the tab bar.
- 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,
- click on the Team name,
- then click the gear icon at the top right,
- then change the Team's access to Admin and
- click Update.
- If you are creating a new Team,
- click the New Team button,
- give the Team an appropriate name,
- set its access to Admin and
- click Create Team.
- If you are modifying an existing Team,
回答2:
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 isEmployees > Engineering > Application Engineering > Identity
, grantingEngineering
write access to a repository meansApplication Engineering
andIdentity
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.
来源:https://stackoverflow.com/questions/21906220/github-how-do-i-make-a-user-an-admin-of-an-organization