How to get the number users and groups in Confluence Server and Data Center

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

要約

The number of users and groups, and the depth of nested groups can contribute to performance and other stability problems in your instance. However, it can be difficult to find out the exact number of users and groups being synched from your LDAP directory, especially if you have nested groups.

ソリューション

If you experience problems, or you want to make sure you don't exceed our recommended guardrails, you can use the following queries to check the total number users and groups.

These queries have been tested with PostgreSQL, Oracle 12c, MySQL 8.0, and Microsoft SQL Server 2017.

Get the total number of groups

Use this query to find out the total number of groups in the instance.

PostgreSQL, MySQL, Microsoft SQL Server, or Oracle

SELECT DISTINCT count(*) AS group_count FROM cwd_group WHERE directory_id in (SELECT id FROM cwd_directory WHERE directory_type in ('CROWD', 'AZURE_AD', 'CONNECTOR'))

Get the total number of users

Use this query to find out the total number of users in the instance.

PostgreSQL, MySQL, Microsoft SQL Server, or Oracle

SELECT DISTINCT count(lower_email_address) AS user_count FROM cwd_user WHERE directory_id in (SELECT id FROM cwd_directory WHERE directory_type in ('CROWD', 'AZURE_AD', 'CONNECTOR'))

更新日時: September 25, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。