Query to Check Groups Actively Used in Space Permissions and Page Restrictions

プラットフォームについて: 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 は除く

要約

LDAP/AD connections can often bring in more groups than intended and it is difficult to scope what groups are currently being used in Confluence. The following query can be used to determine the group and space for all groups used in Confluence.

WITH combined AS ( SELECT DISTINCT GROUPNAME AS name, SPACENAME, 'page' as label FROM CONTENT_PERM INNER JOIN CONTENT_PERM_SET on CONTENT_PERM.CPS_ID = CONTENT_PERM_SET.ID INNER JOIN CONTENT on CONTENT_PERM_SET.CONTENT_ID = CONTENT.CONTENTID INNER JOIN SPACES on CONTENT.SPACEID = SPACES.SPACEID WHERE GROUPNAME IS NOT NULL AND GROUPNAME NOT IN ('confluence-users','confluence-administrators') UNION SELECT DISTINCT PERMGROUPNAME as name, SPACENAME, 'space' as label FROM SPACEPERMISSIONS INNER JOIN SPACES on SPACEPERMISSIONS.SPACEID = SPACES.SPACEID WHERE PERMGROUPNAME IS NOT NULL AND PERMGROUPNAME NOT IN ('confluence-users','confluence-administrators') ) SELECT DISTINCT name, SPACENAME, label FROM combined WHERE name IS NOT NULL;

ℹ️ The "label" column will list 'space' or 'page' to denote if the entry applies to a space permission or page restriction.

ℹ️ This query has been tested against SQL Server and PostgreSQL. Other databases may require altered syntax.

更新日時: September 25, 2025

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

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