How to get the total number of users in Jira Server and Data Center
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.
Having too many users in your Jira Server and Data Center instance can result in instance instability and increase the time for directory synchronization and user authentication.
If you’re experiencing performance issues or want to make sure that you don’t exceed the recommended guardrails, you should check the total number of users in your system.
To get the total number of users in your instance, run the appropriate query against your database:
Run the following query if you're using PostgreSQL, MySQL, or Oracle Database:
SELECT DISTINCT count(lower_email_address) AS user_count FROM cwd_user;
Run the following query if you're using Microsoft SQL Server:
SELECT DISTINCT count(lower_email_address) as user_count FROM [jiraschema].cwd_user;
Was this helpful?Yes Provide feedback about this article