Add active and blocked user totals to user stats dashboard
Problem to solve
Customers want to know how many active users exist in their installation. Currently there is no way to determine this. We list a lot of different statistics but not what they really want. In order to determine the number of active users one needs to connect to the rails console and query for User.active.size
. This number should be readily available on the instance statistics page available at /admin/dashboard/stats
. In addition, the number of blocked users is not displayed on this page. That total can be seen on the /admin/users
page, (or from the rails console at User.blocked.size
) but that is not an entirely obvious place to look.
Customers wish to see this data for license utilisation forecasting. Right now they can only easily see the maximum number of users since their license was issued. Once they see that number and they clean up by blocking / deleting users who should no longer have access they have no easy way to determine the current active user count. Such information should really be made available via the dashboard.
Intended users
With the requested data on the instance statistics page, customers will be able to determine their actual licensed GitLab usage, not just the historical maximum number of users.
Proposal
Include the number of currently active users and the number of currently blocked users on the /admin/dashboard/stats
screen, which is where people naturally look to find such information.
Links / references
/cc: @PaulDuffy Customer(s) interested in this: