How to get the total number of users in Jira Server and Data Center

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Purpose

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.

Solution

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; 
DescriptionSQL queries to get the total number of users in Jira Data Center and Server.
ProductJira, Jira Software, Jira Service Management
Last modified on Dec 21, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.