SQL クエリで特定のページの権限を確認する方法
プラットフォームについて: 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 は除く
要約
It may be helpful to check the permissions of a specific page to verify what is being reported in the UI or an administrator may want to generate this information from the database for reporting purposes
ソリューション
The below query will give an output of all permissions on a given page. Just replace <page title here> with your exact page title
Postgres のクエリ
SELECT u.username , c.cp_type , c.creationdate , c.lastmoddate
FROM content_perm AS c
JOIN user_mapping AS u
ON c.username = u.user_key
WHERE c.cps_id in (SELECT id FROM content_perm_set WHERE content_id in (SELECT contentid FROM content WHERE title= '<page title here>'
ORDER BY version DESC LIMIT 1));MySQL クエリ
SELECT u.username , c.cp_type , c.creationdate , c.lastmoddate
FROM CONTENT_PERM AS c
JOIN user_mapping AS u
ON c.username = u.user_key
WHERE c.cps_id in (SELECT id FROM CONTENT_PERM_SET WHERE content_id in (SELECT contentid FROM CONTENT WHERE title= '<page title here>'));更新日時: September 25, 2025
この内容はお役に立ちましたか?
さらにヘルプが必要ですか?
アトラシアン コミュニティをご利用ください。