Retrieve platform-wide usage statistics and subscription distribution. Admin role required.
authenticate — validates the Bearer JWT and attaches the user to the request.isAdmin — checks that req.auth.role === "admin". Requests from regular user accounts are rejected.Bearer <token>.monthlyGrowth
getUsersAnalytics() in the user repository.topPlan
topPlan reflects the plan that the majority of accounts are currently assigned to. The raw database value (free or pro) is mapped to a display label (Free or Professional) before being returned.activeUsers vs inactiveUsers
isDisabled flag set via the update user activity endpoint. A user who has never logged in is still counted as active unless explicitly disabled.