How to find the total number of users synchronized between LDAP and Jira
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Summary
When investigating problems with user management, including slow directory sync, it can be useful to find the total number of users synchronized between LDAP and Jira.
Solution
Use the following queries to check the total number of users synchronized between LDAP and Jira.
PostgreSQL, MySQL, Oracle
1
2
3
SELECT DISTINCT count(lower_email_address)
AS user_count
FROM cwd_user;
Microsoft SQL Server
1
2
SELECT DISTINCT count(lower_email_address)
FROM [jiraschema].cwd_user;
Was this helpful?