How to find the total number of users synchronized between LDAP and Jira
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
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.
SELECT DISTINCT count(lower_email_address)
AS user_count
FROM cwd_user;
SELECT DISTINCT count(lower_email_address)
FROM [jiraschema].cwd_user;