跳至主要内容

为组织成员授予 GitHub Copilot 访问权限

为组织中的部分或全部成员授予 GitHub Copilot 访问权限。

谁可以使用此功能?

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

在组织中配置 GitHub Copilot 访问权限

在设置 Copilot Business 计划后,组织所有者可以为其组织成员授予 GitHub Copilot 访问权限。

GitHub Copilot 的计费在您为组织成员授予访问权限时立即开始,无论他们何时首次使用 Copilot。如果在计费周期中途为成员授予访问权限,费用会按剩余周期进行比例分摊。更多信息请参阅 GitHub Copilot 许可证

为组织中当前和未来的所有用户授予 GitHub Copilot 访问权限

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

  2. 点击即可选择组织。

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

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

  4. 在侧边栏的 “代码、计划和自动化” 区域,点击 Copilot,随后点击 访问

  5. 如果出现 **Allow this organization to assign seats** 按钮,请点击该按钮。

  6. 点击 **开始添加席位**。

  7. 要为组织中当前和未来的所有用户启用 GitHub Copilot,请选择 **Purchase for all members**(为所有成员购买)。

  8. 在 “Confirm seats purchase for all members”(确认为所有成员购买席位) 对话框中,若确认要为组织中当前和未来的所有用户启用 GitHub Copilot,请点击 **Purchase seats**(购买席位)。

为组织中指定用户授予 GitHub Copilot 访问权限

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

  2. 点击即可选择组织。

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

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

  4. 在侧边栏的 “代码、计划和自动化” 区域,点击 Copilot,随后点击 访问

  5. 如果出现 **Allow this organization to assign seats** 按钮,请点击该按钮。

  6. 点击 **开始添加席位**。

  7. 要为组织中选定的团队或用户启用 GitHub Copilot,请选择 **Purchase for selected members**(为选定成员购买)。

  8. 在 “Enable Copilot access for users and teams”(为用户和团队启用 Copilot 访问) 对话框中,点击两个标签页中的任意一个。

    Screenshot of the "enable access for selected members" dialog.

    • 点击 **Users and teams**(用户和团队)搜索并添加单个用户或团队。

      要搜索用户,请在搜索栏中输入其用户名或全名。如果选中了当前不是组织成员的用户,则在点击 **Continue to purchase**(继续购买)并随后点击 **Purchase seats**(购买席位)后,他们将收到加入组织的邀请。外部协作者会获得 Copilot 席位,但不会收到组织邀请。

    • 点击 **Upload CSV**(上传 CSV)通过上传 CSV 文件批量添加用户。

      要批量添加成员,请点击 **Choose CSV to upload**(选择要上传的 CSV),然后上传一个 CSV 文件。文件中每行包含要添加成员的用户名或电子邮件地址(用逗号分隔),可以混合使用用户名和电子邮件。

      警告

      上传 CSV 文件后,除非您使用的是 Enterprise Managed Users,否则 GitHub Copilot 会在 GitHub.com 上搜索所有匹配的用户。如果 CSV 包含的用户不是组织成员,在点击 **Continue to purchase** 并随后点击 **Purchase seats** 时,他们会被邀请加入组织。外部协作者会获得 Copilot 席位,但不会收到组织邀请。此警告不适用于使用 Enterprise Managed Users 的账户。

      检查从 CSV 文件生成的用户列表。取消选中任何不想添加的用户。

  9. 点击 **Continue to purchase**(继续购买),随后点击 **Purchase seats**(购买席位)。

使用 API 授予 GitHub Copilot 访问权限

您可以使用 GitHub 的 REST API 为组织中的团队或特定用户授予 GitHub Copilot 访问权限。请参阅 Add teams to the Copilot subscription for an organization(为组织添加团队到 Copilot 订阅)和 Add users to the Copilot subscription for an organization(为组织添加用户到 Copilot 订阅)。

GitHub 发现,许多成功的推广都采用了完全自助的模式,开发者可在无需审批的情况下自行领取许可证。了解设置此流程的选项,请参阅 Setting up a self-serve process for GitHub Copilot licenses(为 GitHub Copilot 许可证设置自助流程)。

延伸阅读

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