跳至主要内容

为组织成员撤销 GitHub Copilot 访问权限

从组织中的某些或所有成员移除对 GitHub Copilot 的访问权限。

谁可以使用此功能?

拥有 Copilot Business 计划的组织的组织所有者。

撤销访问对计费的影响

撤销访问将在下一个计费周期开始时生效。如果在一个周期内移除座位,用户将在该计费周期的剩余时间内仍然可以使用 Copilot。更多信息,请参阅 GitHub Copilot 许可证

撤销整个组织对 Copilot 的访问权限

  1. 在 GitHub 页面右上角,点击你的个人头像,然后点击 组织

  2. 点击即可选择组织。

  3. 在你的组织名称下,点击 设置。如果看不到 “设置” 选项卡,请选择 下拉菜单,然后点击 设置

    Screenshot of the tabs in an organization's profile. The "Settings" tab is outlined in dark orange.

  4. 在侧边栏的 Access(访问) 部分,点击 计费和许可证,然后点击 Licensing(许可证)(新平台)。或者,在侧边栏的 “Code planning, and automation”(代码规划与自动化) 部分,点击 Copilot,然后点击 Access(访问)(原平台)。

    重要提示

    如果您尚未为 Copilot 配置所有策略,将无法完成以下步骤。如果是这种情况,请点击 Go to policies(前往策略) 并确保在继续之前已配置所有策略。

  5. 在 “Copilot Business 在您的组织中已启用” 下,若要撤销组织中所有用户的 GitHub Copilot 访问权限,请选择 Disabled(已停用)

  6. 在 “Remove Copilot access(移除 Copilot 访问)” 对话框中,点击 Confirm and remove seats(确认并移除座位)

撤销组织中特定用户对 Copilot 的访问权限

从已授予 Copilot 访问权限的组织中移除用户将自动撤销其 Copilot 访问权限。或者,您也可以在保留其组织成员身份的同时撤销 Copilot 访问权限。

  1. 在 GitHub 页面右上角,点击你的个人头像,然后点击 组织

  2. 点击即可选择组织。

  3. 在你的组织名称下,点击 设置。如果看不到 “设置” 选项卡,请选择 下拉菜单,然后点击 设置

    Screenshot of the tabs in an organization's profile. The "Settings" tab is outlined in dark orange.

  4. 在侧边栏的 “Code, planning, and automation”(代码、规划和自动化) 部分,点击 Copilot,然后点击 Access(访问)

  5. 在 “Copilot Business 在您的组织中已启用” 下,选择 Enabled For: selected members(已启用:选定成员)

    • 在 “Confirm policy update(确认策略更新)” 对话框中,点击 Renew seats(续订座位)
  6. 在 “Access management(访问管理)” 下的搜索栏中,输入成员的用户名或全名。

  7. 要将该成员从拥有 Copilot 访问权限的用户列表中移除,勾选其用户名左侧的复选框,然后点击 Cancel seat(取消座位)

    Screenshot of the Access management section, with a user selected and the 'Cancel seat' button highlighted.

  8. 在 “Confirm seat removal(确认座位移除)” 对话框中,点击 Remove seats(移除座位)

使用 API 撤销对 Copilot 的访问权限

您可以使用 GitHub 的 REST API 来撤销组织中团队或特定用户的 Copilot 访问权限。例如,您可能需要编写脚本,自动撤销未使用 Copilot 的组织成员的座位。请参阅 Remove teams from the Copilot subscription for an organization(从组织的 Copilot 订阅中移除团队)和 Remove users from the Copilot subscription for an organization(从组织的 Copilot 订阅中移除用户)。

延伸阅读

© . This site is unofficial and not affiliated with GitHub, Inc.