Skip to main content

此版本的 GitHub Enterprise 已停止服务 2022-06-03. 即使针对重大安全问题,也不会发布补丁。 要获得更好的性能、改进的安全性和新功能,请升级到 GitHub Enterprise 的最新版本。 如需升级方面的帮助,请联系 GitHub Enterprise 支持

Enabling automatic user license sync for your enterprise

You can manage license usage across your GitHub Enterprise environments by automatically syncing user licenses from 您的 GitHub Enterprise Server 实例 to GitHub Enterprise Cloud.

Enterprise owners can enable automatic user license synchronization.

About automatic license synchronization

GitHub uses a unique-user licensing model. For enterprise products that include multiple deployment options, GitHub determines how many licensed seats you're consuming based on the number of unique users across all your deployments.

Each user account only consumes one license, no matter how many GitHub Enterprise Server instances the user account uses, or how many organizations the user account is a member of on GitHub Enterprise Cloud. This model allows each person to use multiple GitHub Enterprise deployments without incurring extra costs.

For a person using multiple GitHub Enterprise environments to only consume a single license, you must synchronize license usage between environments. Then, GitHub will deduplicate users based on the email addresses associated with their user accounts. Multiple user accounts will consume a single license when there is a match between an account's primary email address on GitHub Enterprise Server and/or an account's verified email address on GitHub.com. For more information about verification of email addresses on GitHub.com, see "Verifying your email address" in the GitHub Enterprise Cloud documentation.

When you synchronize license usage, only the user ID and email addresses for each user account on GitHub Enterprise Server are transmitted to GitHub Enterprise Cloud. For more information, see "About GitHub Connect."

If you enable automatic user license sync for your enterprise, GitHub Connect will automatically synchronize license usage between GitHub Enterprise Server and GitHub Enterprise Cloud weekly.

If you use multiple GitHub Enterprise Server instances, you can enable automatic license sync between each of your instances and the same organization or enterprise account on GitHub Enterprise Cloud.

After you synchronize license usage, you can see a report of consumed licenses across all your environments in the enterprise settings on GitHub.com. For more information, see "Viewing license usage for GitHub Enterprise."

You can also manually upload GitHub Enterprise Server user license information to GitHub Enterprise Cloud. For more information, see "Syncing license usage between GitHub Enterprise Server and GitHub Enterprise Cloud."

Note: If you synchronize license usage and your enterprise account on GitHub.com does not use 企业托管用户, we highly recommend enabling verified domains for your enterprise account on GitHub.com. For privacy reasons, your consumed license report only includes the email address associated with a user account on GitHub.com if the address is hosted by a verified domain. If one person is erroneously consuming multiple licenses, having access to the email address that is being used for deduplication makes troubleshooting much easier. For more information, see "About 企业托管用户" in the GitHub Enterprise Cloud documentation.

Enabling license synchronization

Before enabling license synchronization on 您的 GitHub Enterprise Server 实例, you must enable GitHub Connect. For more information, see "Managing GitHub Connect."

  1. 在 GitHub Enterprise Server 的右上角,单击您的个人资料照片,然后单击 Enterprise settings(Enterprise 设置)GitHub Enterprise Server 上个人资料照片下拉菜单中的"Enterprise settings(企业设置)"

  2. 在企业帐户边� �中,单击 GitHub Connect企业帐户边� �中的 GitHub Connect 选项卡

  3. Under "Server can sync user license count and usage", use the drop-down menu and select Enabled. Drop-down menu to enable automatic user license sync