Skip to main content

此版本的 GitHub Enterprise Server 将于以下日期停止服务 2026-03-17. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

下载企业或组织的许可证使用情况

获取 GitHub、Copilot 和 Advanced Security 许可证的使用数据。

谁可以使用此功能?

企业所有者、组织所有者与账单管理员(云)
企业所有者(服务器)

You can download CSV files with details of paid license use through the GitHub user interface or the REST API.

For more detailed reports on usage of all paid products, see Viewing your usage of metered products and licenses.

On GitHub Enterprise Cloud

  1. Navigate to your enterprise. For example, from https://github.com/settings/enterprises.

  2. From the list of "Billing & licensing" pages, click Licensing.

  3. In the license area of interest, click Download CSV report. If offered a choice, choose your preferred report.

The report will be emailed to the default email address associated with your GitHub account. For information about the fields, see License reports reference.

On GitHub Enterprise Server

  1. In the top-right corner of GitHub Enterprise Server, click your profile picture, then click Enterprise settings.
  2. Under Settings, click License.

The page shows a summary of the licenses your enterprise is using for GitHub Enterprise and GitHub Advanced Security. Use links on the page to view more detailed information.

To download a license usage report for GitHub Advanced Security:

  • Enterprise: In "GitHub Advanced Security", click CSV report.
  • Organization: In the "ORGANIZATION" table, click associated with the organization that you want to download a CSV report for.
  • User namespace: In the "USER NAMESPACED" table, click associated with the user that you want to download a CSV report for.
  • Repository: In the "ORGANIZATION" table, click the name of an organization to show a settings page for the organization. In the GitHub Advanced Security repositories table, click and select Download CSV report.

For details of the fields included in the report, see License reports reference.

Using the REST API

You can retrieve information on paid use of Advanced Security with the billing API.

  • Organization-level data (cloud only), use the /organizations/{org}/settings/billing/usage endpoint.

  • Enterprise-level data, use the /enterprises/{enterprise}/settings/billing/usage endpoint. For more information, see REST API endpoints for billing in the GitHub Enterprise Cloud documentation.