How to export users to CSV from a Jira application
Sometimes it is useful to get a list of users exported to CSV for various purposes. Jira applications don't have this functionality but you can make use of either the Active User Filter Add-on or leverage various database functionalities to do this.
ご利用のデータベースに応じて次のクエリのいずれかを実行します。出力には、ユーザーの ID、ユーザー名、名、姓が含まれます。
データベースの変更を行う場合は 必ず事前に バックアップ を取得してください。
MySQL
select id, user_name, lower_first_name, lower_last_name into outfile '/tmp/jirausers.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' from cwd_user;
this will not include headers
PostgreSQL
copy cwd_user(id, user_name, lower_first_name, lower_last_name) to '/tmp/jirausers.csv' delimiters',' CSV HEADER;
this will include the headers.
クラウドのユーザー インポート
ユーザーが外部のユーザー管理に存在するときに、インポートのために外部のユーザー管理を無効化する必要があることを受けてユーザー インポート用の CSV ファイルの準備が必要となる場合があります。クラウド アプリケーションのユーザー インポート用にデータを準備する場合は次の形式が要求されます。
ユーザー
copy cwd_user(user_name, first_name, last_name, email_address, credential) to '/tmp/jirausers.csv' delimiters',' CSV HEADER;
メンバーシップ
copy cwd_membership(child_name, parent_name) to '/tmp/jiramembership.csv' delimiters',' CSV HEADER;
このドキュメントで推奨されている順序に正確に従ってください。
最終更新日: 2023 年 10 月 4 日
Powered by Confluence and Scroll Viewport.