How to query User Activity via SQL

お困りですか?

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

コミュニティに質問

アトラシアン社外秘

この記事は未検証なのでお客様と共有できません。

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*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;


説明 How to query the database for user activity
製品Confluence

最終更新日 2023 年 8 月 29 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.