fix: exclude service accounts from license seat count by aslilac · Pull Request #24401 · coder/coder
Service accounts previously counted toward the license seat limit. They are now excluded from GetActiveUserCount, which is the query used for license seat enforcement.
Service accounts remain gated behind the Premium FeatureServiceAccounts entitlement — that is now effectively the only restriction.
Generated with Coder Agents
Implementation notes
- Added
AND is_service_account = falseto theGetActiveUserCountSQL query. - Regenerated
queries.sql.goviamake gen. - Added
TestGetActiveUserCountcovering: active human users counted, service accounts excluded, dormant/deleted users excluded.