Migrating from OnDemand to a Crowd installed site
You can extract your user data from a Confluence or Jira application installed site instance. Use these queries to export your users and memberships to CSV, and then import them into Crowd.
On this page:
Migrate Jira Cloud or Confluence Cloud
First you'll need to migrate Jira/Confluence Cloud to your server versions:
Confluence Cloud から Data Center への移行
Jira Cloud から Server アプリケーションに移行する
Exporting user data
If you are using Postgres as your database with Jira or Confluence, you can generate the required CSV files from either of those systems, with the following queries. If you are using a different database, you may need to tweak these.
// Run on JIRA/Confluence
copy (SELECT user_name AS "Username", first_name AS "First Name", last_name AS "Last Name", email_address AS "Email Address", credential AS "Password" FROM cwd_user) to '/tmp/users.csv' csv header;
// Run on JIRA/Confluence
copy (SELECT DISTINCT child_name AS "Username", parent_name AS "Groupname" FROM cwd_membership) to '/tmp/group_memberships.csv' csv header;
バックアップデータの取得
The files will be generated in /tmp, or in the folder specified in the query above.
バックアップされるデータ
バックアップには次のデータが含まれます。
- ユーザー アカウント
- グループ
- Memberships
Importing the data into Crowd
- Follow the instructions in Importing Users from CSV Files
- Connect Crowd to your applications: Adding an Application
- Ensure that the Crowd Directory is placed above the Internal Directory in your User Directories in all downstream applications: Configuring User Directories. This is important because you will have the same users in both directories, and the users will authenticate against the highest directory in the hierarchy.