How to Export User Data to CSV in Confluence

お困りですか?

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

コミュニティに質問

Confluence doesn't currently have functionality to export user data, but you can leverage various database functionalities to accomplish this.

The following queries are specific to your database type. The output will consist of the id, username, first, and last name of the users.

  1. データベースの変更を行う場合は 必ず事前に バックアップ を取得してください。
  2. Cloud required format of user import differs slightly - please scroll down to the area that says Cloud's User Import and follow steps there exactly.

MySQL

ユーザー

select id, user_name, lower_first_name, lower_last_name into outfile '/tmp/confusers.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' from cwd_user;

(info) this will not include headers

PostgreSQL

ユーザー

copy cwd_user(id, user_name, lower_first_name, lower_last_name) to '/tmp/confusers.csv' delimiters',' CSV HEADER;

グループ

copy cwd_group(id, group_name, lower_group_name) to '/tmp/confgroup.csv' delimiters',' CSV HEADER;

Memberships

copy cwd_membership(child_name, parent_name) to '/tmp/confmembership.csv' delimiters',' CSV HEADER;

(info) this will include the headers.


クラウドのユーザー インポート


ユーザーが外部のユーザー管理に存在するときに、インポートのために外部のユーザー管理を無効化する必要があることを受けてユーザー インポート用の CSV ファイルの準備が必要となる場合があります。クラウド アプリケーションのユーザー インポート用にデータを準備する場合は次の形式が要求されます。

ユーザー

Updated statement

\copy (SELECT email_address AS email, user_name AS username, display_name as displayname FROM cwd_user) to '/tmp/user.csv' csv header


Old style (no longer relevant) : "copy cwd_user(user_name, first_name, last_name, email_address, credential) to '/tmp/confusers.csv' delimiters',' CSV HEADER;"


メンバーシップ

Updated statement

\copy (SELECT email_address AS email, user_name AS username, display_name as displayname FROM cwd_user) to '/tmp/user.csv' csv header


Old style (no longer relevant) : "copy cwd_membership(child_name, parent_name) to '/tmp/confmembership.csv' delimiters',' CSV HEADER;"


(info) Order is to be follow exactly as recommended on this documentation
.




クラウドのユーザー インポート

最終更新日: 2019 年 2 月 15 日

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

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