Skip to main content

Managing teams and people with access to your repository

You can see everyone who has access to your repository and adjust permissions.

Who can use this feature

People with admin access to a repository can manage teams and people with access to a repository.

About access management for repositories

For each repository that you administer on GitHub, you can see an overview of every team or person with access to the repository. From the overview, you can also invite new teams or people, change each team or person's role for the repository, or remove access to the repository.

This overview can help you audit access to your repository, onboard or off-board contractors or employees, and effectively respond to security incidents.

如果某个人员获得冲突的访问权限,你将在存储库访问页上看到一条警告。 警告显示在具有冲突访问权限的人员旁,带有“ 混合角色”。 若要查看冲突访问权限的来源,请将鼠标悬停在警告图标上,或单击“混合角色”。

For more information about repository roles, see "Permission levels for a personal account repository" and "Repository roles for an organization."

Access management overview

Filtering the list of teams and people

  1. 在 your GitHub Enterprise Server instance 上,导航到存储库的主页。

  2. 在存储库名称下,单击 “设置”。 “存储库设置”按钮

  3. 在左侧边栏中,单击“管理访问权限。 管理访问权限”选项卡

  4. Under "Manage access", in the search field, start typing the name of the team or person you'd like to find. Optionally, use the dropdown menus to filter your search. Search field for filtering list of teams or people with access

Changing permissions for a team or person

  1. 在 your GitHub Enterprise Server instance 上,导航到存储库的主页。

  2. 在存储库名称下,单击 “设置”。 “存储库设置”按钮

  3. 在左侧边栏中,单击“管理访问权限。 管理访问权限”选项卡

  4. Under "Manage access", find the team or person whose role you'd like to change, then select the Role drop-down and click a new role. Using the "Role" drop-down to select new permissions for a team or person

Inviting a team or person

  1. 在 your GitHub Enterprise Server instance 上,导航到存储库的主页。

  2. 在存储库名称下,单击 “设置”。 “存储库设置”按钮

  3. 在左侧边栏中,单击“管理访问权限。 管理访问权限”选项卡

  4. 在“管理访问”右侧,单击“添加人员”或“添加团队” 。 “邀请团队或人员”按钮

  5. In the search field, start typing the name of the team or person to invite, then click a name in the list of matches. Search field for typing the name of a team or person to invite to the repository

  6. Under "Choose a role", select the repository role to grant to the team or person, then click Add NAME to REPOSITORY. Selecting permissions for the team or person

Removing access for a team or person

  1. 在 your GitHub Enterprise Server instance 上,导航到存储库的主页。

  2. 在存储库名称下,单击 “设置”。 “存储库设置”按钮

  3. 在左侧边栏中,单击“管理访问权限。 管理访问权限”选项卡

  4. Under "Manage access", find the team or person whose access you'd like to remove, then click . trash icon for removing access

Further reading