Document logic behind SM user counts which affect billing
Summary
In https://gitlab.com/gitlab-org/growth/product/-/issues/1445, I documented how Max User count was being calculated, however, since that issue was created over a year ago, some changes have occurred.
In this issue, we will research various user counts within the self-managed instance which affect subscription billing. Through this research we will clearly define how the Max User count is being calculated, exception cases and variations on the calculation based on version. This information will be added to our subscription docs page as reference for the community.
Scoped fields
-
daily_billable_users_count
- referenced in code -
historical_max
- referenced in code -
Billable Users
- displayed on Admin>License -
Billable Users
- displayed on Admin>License>See Usage -
Maximum Users
- displayed on Admin>License -
Users over license
- displayed on Admin>License
Reference
- Video: Code dive - trying to make sense of Max users
- Max Users count code reference: https://gitlab.com/gitlab-org/gitlab/blob/master/ee/app/models/license.rb#L526
- Users over license code reference: https://gitlab.com/gitlab-org/gitlab/-/blob/2fd8356f5f9433452210d431b6fb51112ea3d0db/ee/app/views/admin/licenses/_breakdown.html.haml#L11
- Community contribution MR which refactored Max User count: !19071 (merged)
- Issues related to User count bugs/inconsistency/confusion:
Edited by Amanda Rueda