There are two main ways to grant access to Copilot in an enterprise:
- Assign licenses directly to users or teams in the enterprise. This approach simplifies license management at scale and provides the option of granting Copilot licenses to users who don't consume a GitHub Enterprise license. This approach is currently only available for Copilot Business licenses.
- Enable Copilot for organizations. This approach allows you to choose Copilot Business or Copilot Enterprise for individual organizations and give organization owners control to grant licenses to the users who need them most.
将许可证分配给用户或团队
注意
This feature is in 公共预览版 and is being rolled out on a phased basis. If your enterprise doesn't already have access, it will gain access in the near future.
可以将 Copilot Business 许可证直接分配给用户或企业团队。
将许可证分配给企业团队后,在团队中添加或删除用户时,用户会相应获得或失去对 Copilot 的访问权限。 如果使用 Enterprise Managed Users,可以将团队与标识提供者 (IdP) 组同步,并通过 IdP 管理许可操作。
先决条件
- 设置“Policies for enterprise-assigned users”**** 策略,以便在其他企业策略设置为“No policy”时为这些用户定义默认设置。 请参阅“管理企业中 Copilot 的策略和功能”。
- 如果要将许可证分配给尚未加入企业的用户,需要先邀请用户(个人帐户)或从标识提供者 (Enterprise Managed Users) 中对其进行预配。 对于个人帐户,请参阅 直接邀请用户加入企业。
- 如果要向企业团队分配许可证,需要先创建该团队。 请参阅“创建企业团队”。
分配许可证
-
在 GitHub 的右上角,单击你的个人资料图片。
-
根据环境,单击“你的企业”,或单击“你的企业”,然后单击要查看的企业********。
-
在页面顶部,单击“ Billing and licensing”****。
-
在左侧边栏中,单击“Licensing”****。
-
**** 在“Copilot”旁边,单击“Manage”。
-
******** 单击“Users”或“Enterprise Teams”选项卡。
-
**** 单击“Assign Licenses”。
-
**** 搜索用户或团队,然后单击“Add licenses”。
为组织启用 Copilot
如果你的企业使用 Copilot Enterprise 计划,则可以分配 Copilot Enterprise 或 Copilot Business 的许可证。
-
Go to the access management page for your enterprise. Temporarily, the location of this page varies depending on whether your enterprise has been migrated to the new UI for direct Copilot licensing.
-
First, try
https://github.com/enterprises/YOUR-ENTERPRISE/enterprise_licensing/copilot
, replacing YOUR-ENTERPRISE with your enterprise's slug. -
If you receive a 404 error, go to
https://github.com/enterprises/YOUR-ENTERPRISE/settings/copilot
.
提示
If you use 具有数据驻留的 GitHub Enterprise Cloud, replace
github.com
withSUBDOMAIN.ghe.com
. -
-
找到组织访问下拉菜单,并选择是为所有组织启用 Copilot,还是允许特定组织使用。
-
如果选择“允许特定组织”:
- **** 如果未显示组织列表,请单击“ Organizations”选项卡。
- 找到要为其启用 Copilot 的组织。
- 在组织名称右侧,选择“Copilot”下拉菜单。****
- 如果企业拥有 Copilot Business 计划,请单击“Enabled”****。
- 如果企业拥有 Copilot Enterprise 计划,请单击“Copilot: Enterprise”或“Copilot: Business”以向组织分配特定 Copilot 计划********。
后续步骤
在为企业中的组织启用 Copilot 后,该组织的所有者可以授予对该组织的部分或所有成员的访问权限。 请参阅“向组织成员授予对 Copilot 的访问权限”。