◐ Shell
clean mode source ↗

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 = false to the GetActiveUserCount SQL query.
  • Regenerated queries.sql.go via make gen.
  • Added TestGetActiveUserCount covering: active human users counted, service accounts excluded, dormant/deleted users excluded.