Enabling Codespaces for your organization

You can control which users in your organization can use Codespaces.

To manage user permissions for Codespaces for an organization, you must be an organization owner.

代码空间可用于使用 GitHub Team 或 GitHub Enterprise Cloud 的组织。 更多信息请参阅“GitHub 的产品”。

About enabling Codespaces for your organization

Organization owners can control which users in your organization can create and use codespaces.

To use codespaces in your organization, you must do the following:

By default, a codespace can only access the repository from which it was created. If you want codespaces in your organization to be able to access other organization repositories that the codespace creator can access, see "Managing access and security for Codespaces."

Enable Codespaces for users in your organization

  1. In the top right corner of GitHub.com, click your profile photo, then click Your organizations. 个人资料菜单中的组织

  2. 在组织旁边,单击 Settings(设置)设置按钮

  3. 在左侧边栏中,单击 Codespaces左侧边栏中的"Codespaces"选项卡

  4. Under "User permissions", select one of the following options:

    • Allow for all users to allow all your organization members to use Codespaces.
    • Selected users to select specific organization members to use Codespaces.

    Radio buttons for "User permissions"

Disabling Codespaces for your organization

  1. In the top right corner of GitHub.com, click your profile photo, then click Your organizations. 个人资料菜单中的组织
  2. 在组织旁边,单击 Settings(设置)设置按钮
  3. 在左侧边栏中,单击 Codespaces左侧边栏中的"Codespaces"选项卡
  4. Under "User permissions", select Disabled.

Setting a spending limit

Note: You must set a spending limit before you can use Codespaces.

By default, your organization or enterprise will have a Codespaces spending limit of $0, which prevents new codespaces from being created or existing codespaces from being opened. To allow your users to create codespaces in your organization, set the limit to a value higher than $0.

For information on managing and changing your account's spending limit, see "Managing your spending limit for Codespaces."

此文档对您有帮助吗?

隐私政策

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或者, 了解如何参与。