Licensing and Billing Models
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 11 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Licensing and Billing Models in GitHub Enterprise
Introduction: Why Licensing Matters in the Enterprise
Managing a GitHub Enterprise environment is not merely a technical task involving repository settings and access controls; it is fundamentally a financial and operational responsibility. When organizations scale, the way they procure, assign, and manage licenses directly impacts the bottom line and the day-to-day productivity of developers. Understanding the nuances of GitHub’s licensing models—whether it is GitHub Enterprise Cloud or GitHub Enterprise Server—is essential for any administrator who wants to avoid unexpected costs, ensure compliance, and maintain a frictionless environment for their engineering teams.
Many administrators treat licensing as a "set it and forget it" task, often leaving it to the procurement department. However, failing to understand how seats are consumed or how billing cycles interact with user lifecycle management can lead to significant budgetary waste. In this lesson, we will peel back the layers of GitHub’s licensing architecture. We will explore how to manage subscriptions, how to interpret billing statements, and how to implement governance strategies that keep your organization compliant while minimizing unnecessary overhead.
Not read yet
Understanding GitHub Enterprise Licensing Architecture
At the core of the GitHub Enterprise offering are two primary deployment models: GitHub Enterprise Cloud and GitHub Enterprise Server. While both provide the same core collaborative features, their licensing structures differ based on where the data resides and how the billing is triggered. Understanding this distinction is the first step in effective administration.
GitHub Enterprise Cloud (GHEC)
GitHub Enterprise Cloud is a hosted service managed by GitHub. Billing here is typically consumption-based or seat-based, tied to your enterprise account. The primary unit of measure is the "user seat." When you add a user to an organization owned by your Enterprise account, that user consumes a license.
The beauty of GHEC is its elasticity. Because it is cloud-native, GitHub handles the infrastructure, meaning you are paying for the service and the ability to manage your users centrally. You can manage these licenses through the Enterprise settings page, where you can see a real-time count of active seats versus your total allotment.
GitHub Enterprise Server (GHES)
GitHub Enterprise Server is the self-hosted version of the platform. It is designed for organizations with strict data residency requirements or those that need to operate in air-gapped environments. Licensing for GHES is generally handled through a subscription file (a .ghl or license file) that you upload to your appliance.
Because GHES is self-hosted, you are responsible for the underlying infrastructure (AWS, Azure, GCP, or on-premises hardware). The billing model is usually based on an annual contract covering a specific number of seats. If you exceed that number, you may face compliance warnings or, in some cases, service interruptions depending on your agreement.
Callout: Cloud vs. Server Licensing Distinctions The fundamental difference between GHEC and GHES licensing lies in the "source of truth." In GHEC, the source of truth is the GitHub cloud platform itself, which tracks seats in real-time. In GHES, the source of truth is your local license file and the contract you signed. GHEC offers more flexibility for scaling up and down, while GHES offers more control over the environment but requires manual oversight to ensure you remain within your contractual seat count.
Not read yet
Navigating the Billing Dashboard
As an administrator, the billing dashboard is your primary tool for cost control. Whether you are using the cloud or the server version, you must become familiar with the specific metrics provided in these interfaces.
Key Metrics to Monitor
- Total Paid Seats: The number of licenses you have purchased under your agreement.
- Used Seats: The number of active user accounts currently consuming a license.
- Pending Invitations: Users who have been invited to an organization but have not yet accepted. Depending on your configuration, these may or may not count toward your seat limit.
- Overages: The number of users exceeding your purchased seat count, which usually triggers an automatic billing adjustment or a "true-up" at the end of the term.
Managing Seats via the Enterprise Account
In an Enterprise Cloud environment, you can view your seat usage by navigating to your Enterprise account settings and selecting "People" and then "Manage licenses." This view provides a granular breakdown of which organizations are consuming the most licenses. This is critical for internal chargebacks. If your company operates with multiple business units, you can use this data to distribute the cost of GitHub licenses proportionally to the departments that are actually using the platform.
Tip: Automating License Audits Do not wait for the end of the billing cycle to check your seat usage. Set a calendar reminder to audit your "People" list every month. Removing inactive users—such as contractors whose projects have ended or employees who have left the company—is the single most effective way to optimize your licensing costs.
Not read yet
User Lifecycle Management and Licensing
The lifecycle of a user account is the most common area where licensing drift occurs. When a new developer joins, they are added to the system; however, when they leave, administrators often forget to remove them. This "zombie account" phenomenon is a silent budget killer.
Best Practices for User Provisioning
To maintain a healthy licensing environment, you should integrate your GitHub Enterprise account with your Identity Provider (IdP) using SCIM (System for Cross-domain Identity Management). SCIM allows you to synchronize your directory (like Okta, Azure AD, or Ping) with GitHub.
When an employee leaves the company and is deactivated in your IdP, the SCIM integration automatically deactivates their GitHub account. This ensures that you are only paying for active, authorized employees. This is a massive improvement over manual provisioning, which is prone to human error and delays.
Step-by-Step: Configuring SCIM for License Management
- Enable SAML SSO: Ensure your Enterprise account is configured for SAML Single Sign-On.
- Generate a Provisioning Token: In your GitHub Enterprise settings, navigate to the SCIM configuration section to generate a token.
- Configure your IdP: Input the SCIM endpoint and the token into your Identity Provider’s GitHub application settings.
- Test Synchronization: Start with a small group of test users to ensure that mapping between your IdP groups and GitHub teams is functioning as expected.
- Enable Automatic Provisioning: Once testing is complete, turn on automatic provisioning to link user lifecycle events directly to license consumption.
Warning: The "Orphaned User" Trap Be extremely careful when removing users who own repositories. If you delete a user without transferring ownership of their repositories, those repositories might become inaccessible or orphaned. Always use the "Transfer ownership" feature or ensure that the user’s repositories are backed up or migrated to a team-owned account before deactivating their license.
Not read yet
Advanced Licensing Features: GitHub Copilot and Advanced Security
Modern enterprise licensing is no longer just about the base GitHub seat. Organizations are increasingly adopting GitHub Copilot and GitHub Advanced Security (GHAS), both of which have their own specific licensing and billing models that sit on top of the standard seat price.
GitHub Copilot Licensing
Copilot is billed on a per-user, per-month basis. Unlike the base license, which is often a flat enterprise fee, Copilot licenses are granular. Administrators can assign Copilot access to specific users or teams via the Enterprise settings.
The billing for Copilot is additive. If you have 500 developers but only 200 are working on projects where AI assistance is beneficial, you only need to purchase 200 Copilot licenses. It is vital to track this assignment carefully, as it is easy for costs to spiral if you inadvertently grant access to the entire enterprise.
GitHub Advanced Security (GHAS)
GHAS is licensed based on the number of "committers." A committer is defined as any unique user who has pushed code to a repository where GHAS features (like secret scanning or code scanning) are enabled. This is a complex billing model because it is dynamic.
If a user pushes code to a repo with GHAS enabled, they become a "billable committer" for that month. If they do not push code again for the rest of the year, they may not be billed in subsequent months, depending on your specific contract. Managing GHAS costs requires a deep understanding of your repository activity. You should periodically audit which repositories have GHAS enabled to ensure you are not paying for security features on repositories that do not actually require them.
Not read yet
Cost Optimization Strategies
To avoid the "billing shock" that many large organizations face, you should implement a proactive cost management strategy. This involves a combination of technical configuration and organizational policy.
1. Implement Chargeback Models
If your organization is large, centralizing the cost of GitHub licenses in a single IT budget can lead to waste. Instead, implement a chargeback model where individual departments or project teams are billed for the licenses they consume. When teams are responsible for their own budget, they become much more diligent about auditing their user lists and deactivating inactive accounts.
2. Monitor Repository Activity
Use the GitHub API to monitor repository activity. Repositories that have not seen a commit in six months should be archived. Archiving a repository not only cleans up your workspace but, in the context of GHAS, helps ensure that you aren't accidentally triggering security scanning costs on stale, inactive codebases.
3. Leverage "Enterprise Managed Users" (EMU)
For highly regulated industries, GitHub offers Enterprise Managed Users. With EMU, the enterprise owns the user identity entirely. This provides the highest level of control over licensing because you can provision and deprovision users with absolute certainty. While this requires more setup, it eliminates the "shadow IT" scenario where users might create their own accounts using company emails.
Not read yet
Common Pitfalls and How to Avoid Them
Even with the best intentions, administrators often fall into common traps regarding licensing. Understanding these pitfalls is the best way to avoid them.
- Failure to Use Service Accounts: Many teams use personal user accounts for automated CI/CD processes. This is a waste of a license and a security risk. Always use "Machine Users" or GitHub Apps for automation, which do not consume a human user license.
- The "Seat Hoarding" Problem: Managers often request more licenses than they need "just in case." Implement a policy where licenses are reclaimed if they are not used for a specific period (e.g., 30 days).
- Ignoring License Expiration: In the GHES model, if your license file expires, your users will be locked out of the system. Always set up automated alerts for license expiration at least 90 days in advance to allow time for procurement cycles.
- Lack of Visibility: If you do not have a dedicated person or team reviewing the billing dashboard, you will miss trends. Make billing review a standard item in your quarterly business reviews (QBRs).
Not read yet
Table: Comparison of Licensing Models
| Feature | GitHub Enterprise Cloud | GitHub Enterprise Server |
|---|---|---|
| Hosting | Managed by GitHub | Self-hosted (Cloud or On-Prem) |
| Seat Management | Real-time via Enterprise Settings | Controlled via License File |
| Billing Basis | Active User Seats | Annual Contract / Subscription |
| Provisioning | SSO + SCIM recommended | SSO/LDAP integration |
| Scaling | Highly elastic | Limited by appliance capacity |
| License Expiration | Continuous service | Hard lockout if file expires |
Code Snippets for Admin Automation
To manage licenses effectively, you should use the GitHub API to query user activity. The following example (using Python and the requests library) demonstrates how you can list all users in your enterprise and check their last activity date. This is a powerful way to identify candidates for license reclamation.
import requests
# Set your enterprise account and personal access token
enterprise_slug = "your-enterprise-name"
token = "your-github-pat"
headers = {
"Authorization": f"token {token}",
"Accept": "application/vnd.github.v3+json"
}
def get_enterprise_members():
url = f"https://api.github.com/enterprises/{enterprise_slug}/members"
response = requests.get(url, headers=headers)
if response.status_code == 200:
members = response.json()
for member in members:
# Check last login or activity timestamp
print(f"User: {member['login']}, Last Active: {member.get('last_active', 'N/A')}")
else:
print(f"Failed to fetch members: {response.status_code}")
# Run the function
get_enterprise_members()
Note: This script is a simplified example. In a real-world scenario, you would want to paginate through the results and compare the last_active field against a threshold, such as 90 days.
Not read yet
Best Practices for Enterprise Licensing
- Centralize Governance: Even if teams have autonomy, the licensing strategy should be centralized. Do not allow individual teams to purchase their own independent GitHub plans if you are already on an Enterprise contract.
- Standardize Onboarding: Create a standard process for new hires that includes automated license provisioning. This ensures that every new user has the correct permissions and that the cost is accounted for from day one.
- Use GitHub Apps: Wherever possible, replace personal tokens with GitHub Apps. GitHub Apps are free and they do not consume a seat license, making them the most cost-effective way to handle automation and integrations.
- Transparent Communication: Keep your developers informed. If you are planning to prune inactive users, communicate the timeline clearly so that no one is surprised when their access is revoked.
- Annual True-ups: Work closely with your GitHub account manager. They can provide insights into your usage patterns and help you negotiate better rates during your annual renewal based on your actual consumption data.
Callout: The "True-Up" Process Explained Many organizations are confused by the "true-up" process. In a typical enterprise contract, you commit to a certain number of seats. If you exceed that number, you do not immediately lose access; instead, you accrue "overage" charges. A "true-up" is the process where, at the end of your contract year, you reconcile the difference between your initial commitment and the actual number of users who accessed the platform. This is why keeping your seat count accurate throughout the year is vital—it prevents a massive, unexpected invoice at the end of the term.
Not read yet
Addressing Common Questions (FAQ)
Q: Do I pay for the same user twice if they are in multiple organizations? A: No. In GitHub Enterprise, a user is billed once for their identity within the enterprise account, regardless of how many organizations they belong to.
Q: What happens to a user's repositories if I remove their license? A: The user’s account becomes "suspended" or deactivated. Their repositories remain, but they are no longer accessible to the user. It is best practice to transfer repository ownership to a team or organization before deactivating the user to ensure continuity.
Q: Can I use a trial license for a production environment? A: No. Trial licenses are specifically for testing and evaluation. Using them in a production environment is a violation of the terms of service and provides no support or service level guarantees.
Q: How do I handle guest or contractor access? A: Contractors and guests are treated the same as employees from a licensing perspective. If they have an account in your enterprise, they consume a seat. If you have a high volume of temporary contractors, consider using a separate, smaller instance or a specific "contractor" organization where you can monitor their lifecycle more tightly.
Not read yet
Key Takeaways
- Visibility is Everything: You cannot manage what you cannot measure. Use the billing dashboard and the GitHub API to maintain a real-time understanding of your seat usage.
- Automate the Lifecycle: Manual provisioning and deprovisioning are the primary causes of license waste. Integrate your IdP with GitHub via SCIM to ensure that license assignment follows the employee’s status in your directory.
- Distinguish Between Base and Add-on Costs: Understand that Copilot and Advanced Security are separate, billable entities. Managing them requires a different set of metrics than managing standard user seats.
- Use Machine Users: Avoid wasting licenses on automation. Use GitHub Apps or machine users for CI/CD pipelines and bot activities to keep your bill focused on human collaborators.
- Governance is Proactive: Don’t wait for an audit or a renewal conversation to look at your licensing. Make it a recurring administrative task to clean up inactive users and archive stale repositories.
- Plan for Growth, but Avoid Hoarding: It is helpful to have a buffer of licenses for new hires, but do not keep an excessive number of "empty" seats, as these represent wasted capital that could be deployed elsewhere in your engineering budget.
- Communication is Key: Licensing decisions affect developers' access to their tools. Always communicate changes in policy or license reclamation schedules well in advance to maintain team trust and minimize disruption.
By mastering these concepts, you transition from being a passive administrator to a strategic partner in your organization's engineering operations. Effective licensing management is not about saving money for the sake of it; it is about ensuring that your organization is using its resources efficiently so that your developers have the tools they need, exactly when they need them, without unnecessary administrative friction.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Managed Users vs Personal Accounts
- Managed Users vs Personal Accounts Quiz5q
- Configuring SAML Single Sign-On
- Configuring SAML Single Sign-On Quiz5q
- Enforcing Two-Factor Authentication
- Enforcing Two-Factor Authentication Quiz5q
- SCIM Provisioning Implementation
- SCIM Provisioning Implementation Quiz5q
- Team Synchronization with IdP
- Team Synchronization with IdP Quiz5q
- Choosing Identity Providers
- Choosing Identity Providers Quiz5q
- Authentication and Authorization Model
- Authentication and Authorization Model Quiz5q
- Organization Roles Overview
- Organization Roles Overview Quiz5q
- Repository Roles Configuration
- Repository Roles Configuration Quiz5q
- Enterprise Teams Management
- Enterprise Teams Management Quiz5q
- Auditing Access and Permissions
- Auditing Access and Permissions Quiz5q
- Managing Policies and Rulesets
- Managing Policies and Rulesets Quiz5q
- Admin vs GitHub Support Responsibilities
- Admin vs GitHub Support Responsibilities Quiz5q
- Generating Support Bundles
- Generating Support Bundles Quiz5q
- Creating Diagnostics Reports
- Creating Diagnostics Reports Quiz5q
- Developer Process Standards
- Developer Process Standards Quiz5q
- Workflow and Branching Standards
- Workflow and Branching Standards Quiz5q
- GHEC with Enterprise Managed Users
- GHEC with Enterprise Managed Users Quiz5q
- GHEC with Data Residency
- GHEC with Data Residency Quiz5q
- GHEC with Personal Accounts
- GHEC with Personal Accounts Quiz5q
- GitHub Enterprise Server Deployment
- GitHub Enterprise Server Deployment Quiz5q
- Licensing and Billing Models
- Licensing and Billing Models Quiz5q
- Monitoring License Usage
- Monitoring License Usage Quiz5q
- Organization Security Policies
- Organization Security Policies Quiz5q
- Enterprise Security Policies
- Enterprise Security Policies Quiz5q
- Enterprise Security Posture
- Enterprise Security Posture Quiz5q
- Data Protection Strategies
- Data Protection Strategies Quiz5q
- Audit Logging Implementation
- Audit Logging Implementation Quiz5q
- Security Reporting and Compliance
- Security Reporting and Compliance Quiz5q
- Vulnerability Alerts Configuration
- Vulnerability Alerts Configuration Quiz5q
- Secret Scanning Setup
- Secret Scanning Setup Quiz5q
- CodeQL Code Scanning
- CodeQL Code Scanning Quiz5q
- Dependabot Configuration
- Dependabot Configuration Quiz5q
- Security Advisories Management
- Security Advisories Management Quiz5q
- Security Response Planning
- Security Response Planning Quiz5q
- Runner Groups Configuration
- Runner Groups Configuration Quiz5q
- GitHub-Hosted vs Self-Hosted
- GitHub-Hosted vs Self-Hosted Quiz5q
- IP Allow Lists Configuration
- IP Allow Lists Configuration Quiz5q
- Azure Private Networking
- Azure Private Networking Quiz5q
- Runner Performance Monitoring
- Runner Performance Monitoring Quiz5q
- Troubleshooting Runner Issues
- Troubleshooting Runner Issues Quiz5q
- Enterprise Migration Strategies
- Enterprise Migration Strategies Quiz5q
- Backup and Disaster Recovery
- Backup and Disaster Recovery Quiz5q
- High Availability Configuration
- High Availability Configuration Quiz5q
- Upgrade Planning and Execution
- Upgrade Planning and Execution Quiz5q
- Performance Tuning
- Performance Tuning Quiz5q
- Compliance and Regulatory Requirements
- Compliance and Regulatory Requirements Quiz5q
- Common Administration Issues
- Common Administration Issues Quiz5q
- Debugging Authentication Problems
- Debugging Authentication Problems Quiz5q
- Network Connectivity Issues
- Network Connectivity Issues Quiz5q
- Working with GitHub Support
- Working with GitHub Support Quiz5q
- Log Analysis and Debugging
- Log Analysis and Debugging Quiz5q
- Enterprise Maintenance Windows
- Enterprise Maintenance Windows Quiz5q
No GH-100 practice exam yet
Your points already work on 76 Amazon, CompTIA and Microsoft exams.
See the exams