How to get the total number of groups 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.
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 groups in your Jira Server and Data Center instance can impact instance stability — including outages and noticeable performance drops under heavy load — increase the time for directory synchronization and user authentication, and cause the unresponsiveness of the application access and group management UI.
If you’re experiencing performance issues or want to make sure that you don’t exceed the recommended guardrails, check the total number of groups.
Solution
To get the total number of groups in your system, run the appropriate query against your database:
SELECT DISTINCT count(*)
AS group_count
FROM cwd_group;
SELECT DISTINCT count(*)
as group_count
FROM [jiraschema].cwd_group;