How Can we Export and Import Jira Users and User Groups from DC to DC
Asked by V N Raju Vallabhaneni:

We are planning to migrate the Jira DC to DC, we should migrate the users and groups prior migration. How can we export the users along with passwords from source DC or DC database to csv and how can we import this csv file into target DC or DC database.


Answers:
author: Ed Letifov _TechTime - New Zealand_
body: Hello, [@V N Raju Vallabhaneni](/t5/user/viewprofilepage/user-id/4233488)

1) Connect target Jira to the source Jira as a user directory, see:

* See <https://confluence.atlassian.com/adminjiraserver/configuring-user-directories-938847049.html>
* And specifically: <https://confluence.atlassian.com/adminjiraserver/connecting-to-crowd-or-another-jira-application-for-user-management-938847056.html#ConnectingtoCrowdoranotherJiraapplicationforusermanagement-jiraConnectingJiraapplicationstoanotherserver>
* make sure the directory is configured as Read-Only in the target Jira
* synchronise the directory pulling in all users from the source and their groups

2) Install [User Management for Jira](https://marketplace.atlassian.com/apps/1215285/user-management-for-jira-automated-user-access-management?hosting=datacenter&tab=overview&utm_campaign=usermanagement-datacenter&utm_source=community&utm_medium=answer&utm_term=copy+users+and+groups+from+another+Jira) app on evaluation license, go to [Bulk User Actions](https://techtime.co.nz/display/TECHTIME/Bulk+User+Actions+How+to+Configure?utm_campaign=usermanagement-datacenter&utm_source=community&utm_medium=answer&utm_term=copy+users+and+groups+from+another+Jira), find users you need to copy, select in bulk, use "Change directory" action, choose internal directory as the target, choose "Copy" option.

3) Disconnect/Disable the directory created in (1)

4) Enjoy.

If you have questions reach out to our [**24x7 support**](https://techtime.co.nz/support?utm_campaign=usermanagement-datacenter&utm_source=community&utm_medium=answer&utm_term=copy+users+and+groups+from+another+Jira)


author: Ananjan_Mishra
body: Hey [@V N Raju Vallabhaneni](/t5/user/viewprofilepage/user-id/4233488)

If the solution suggested by [@serge calderara](/t5/user/viewprofilepage/user-id/3385932) worked for you, that's awesome!

If you're looking for an app from the marketplace, check out our [Deactivate Inactive Users \& Bulk User Management for Jira](https://marketplace.atlassian.com/apps/1224360/deactivate-inactive-users-bulk-user-management-for-jira?hosting=cloud&tab=overview). It can perfectly meet your needs.

Feel free to [reach out](https://miniorange.atlassian.net/servicedesk/customer/portal/2/group/6) if you have any questions.


author: serge calderara
body: Could you please decribe more the migration process you are targeting ?

At you building a new instance DC and you need to get all data from Source DC to Target DC ?  
Wich back end database are you using ?

What is the way you manage user directories ?

Regards

comments: author: V N Raju Vallabhaneni
body: We are using PostgreSQL databases in both source and target DCs and users are added into Jira internal directories.


author: serge calderara
body: Why not using directly the backup/restore instance feature ?

Your instance DC 1 backup can then be restore on your DC2 and user accounts and groups are comimg also as it is internal account


Tags: jira-server

server