How to query User Activity via 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 は除く

要約

This query will allow you to pull the User Activity in Confluence as seen in the Activity tab of a user's profile.

ソリューション

  • You can run the below query against the database. Replace both instances of <username> in the below query with your user's exact username.

    select contenttype,title,creationdate,lastmoddate,pageid,spaceid from content where creator = (select user_key from user_mapping where username = '<username>') or lastmodifier = (select user_key from user_mapping where username = '<username>');

    or to obtain this data for all users along with creation date, you can use something like:

    select c.contenttype, c.title, c.creationdate, c.lastmoddate, c.pageid, c.spaceid, u.username as "last change made by" from content c JOIN user_mapping u ON c.creator = u.user_key where creator IN (select user_key from user_mapping) or lastmodifier IN (select user_key from user_mapping) group by c.contenttype, c.title, c.creationdate, c.lastmoddate, c.pageid, c.spaceid, u.username order by c.lastmoddate DESC;
更新日時: September 25, 2025

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

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