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.
Assigning licenses to users or teams
注意
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.
You can assign Copilot Business licenses directly to users or enterprise teams.
When you assign licenses to an enterprise team, users receive or lose access to Copilot when they are added or removed from the team. If you use Enterprise Managed Users, you can sync the team with an identity provider (IdP) group and manage licensing from your IdP.
Prerequisites
- Set the Policies for enterprise-assigned users policy to define a default setting for these users when other enterprise policies are set to "No policy". See 管理企业中 Copilot 的策略和功能.
- If you want to assign licenses to users who are not already in your enterprise, you must first invite the users (personal accounts) or provision them from your identity provider (Enterprise Managed Users). For personal accounts, see Inviting users to your enterprise directly.
- If you want to assign a license to an enterprise team, you must create the team first. See Creating enterprise teams.
Assigning licenses
-
在 GitHub 的右上角,单击你的个人资料图片。
-
根据环境,单击“你的企业”,或单击“你的企业”,然后单击要查看的企业********。
-
在页面顶部,单击“ Billing and licensing”****。
-
In the left sidebar, click Licensing.
-
Next to "Copilot", click Manage.
-
Click the Users or Enterprise Teams tab.
-
Click Assign Licenses.
-
Search for users or teams, then click Add licenses.
Enabling Copilot for organizations
If your enterprise has a Copilot Enterprise plan, you can assign licenses for either Copilot Enterprise or 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
http://github.com/enterprises/YOUR-ENTERPRISE/enterprise_licensing/copilot
, replacing YOUR-ENTERPRISE with your enterprise's slug. -
If you receive a 404 error, go to
http://github.com/enterprises/YOUR-ENTERPRISE/settings/copilot
.
提示
If you use 具有数据驻留的 GitHub Enterprise Cloud, replace
github.com
withSUBDOMAIN.ghe.com
. -
-
Find the organization access dropdown menu and choose whether to enable Copilot for all organizations or allow for specific organizations.
-
If you selected Allow for specific organizations:
- If you don't already see a list of organizations, click the Organizations tab.
- Locate the organization for which you want to enable Copilot.
- To the right of the organization name, select the Copilot dropdown menu.
- If your enterprise has a Copilot Business plan, click Enabled.
- If your enterprise has a Copilot Enterprise plan, click either Copilot: Enterprise or Copilot: Business to assign a specific Copilot plan to the organization.
Next steps
After you've enabled Copilot for an organization in your enterprise, owners of the organization can grant access to some or all members of the organization. See 向组织成员授予对 Copilot 的访问权限.