Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

One Appfire Support Knowledge Base
Results will update as you type.
  • How to add values to 5 custom fields to issues in bulk using Jira Command Line Interface (CLI)
  • How to add values to a custom field in Jira using Jira CLI
  • How to use a properties file with runFromCsv in Jira Command Line Interface (CLI)
  • How to remove options from a custom field using Jira CLI
  • How to add browse project permission to active users using Jira Command Line Interface (CLI)
  • How to update project permission scheme in bulk using Jira Command Line Interface app
  • How to create and link multiple issues to the parent using Run Command Line Interface (CLI)
  • How to use the runFromLinkList action in CLI
  • How to create components in bulk using Jira Command Line Interface (CLI)
  • How to associate a workflow to a workflow scheme with Jira CLI
  • How to export multiple attachments from an issue using JCLI
  • How to get all the Jira users list using Jira Command Line Interface (CLI)
  • How to delete specific issue links in bulk using Jira CLI
  • How to use setShareScope action in Jira Command Line Interface (CLI)
  • How to add a user to a project role using Jira CLI app
  • How to transition a Jira issue using Jira Command Line Interface (CLI)
  • How to import data exported from another instance with Jira CLI
  • How to clone an issue which has issue links to other Jira issues using CLI
  • How to add application links using Jira Command Line Interface
  • How to create issues in bulk from a CSV file using Jira Command Line Interface (CLI)
  • How to bulk clone issues based on a shared component using the Jira CLI app
  • Adding users in bulk to ServiceDesk organizations using CLI
  • Add project versions with start and release dates to multiple projects using Jira CLI
  • How to update issues in bulk from a CSV file using Jira Command Line Interface (CLI)
  • Set field value for issues in bulk using Jira Command Line Interface (CLI) in Jira
  • Resolve the remote error while adding user to a group using CLI
  • How to delete issues in bulk using Jira CLI
  • How to update the release version for multiple projects using Jira Command Line Interface (CLI)
  • Run multiple CLI commands from a single batch or CSV file or text file
  • How to avoid CAPTCHA when using Jira CLI
  • How to create issue or update status using runFromCsv
  • How to bulk clone issues
  • How to make global changes to comments (JCLI)
  • How to add users to groups in bulk (Jira)
  • Create Jira projects in bulk using Jira Command Line Interface (CLI)
  • How to refer to a newly created issue to perform CLI actions through scripts
  • Create bulk users in Jira using Jira Command Line Interface (CLI)
  • Create multiple sub-tasks from JQL filter results using the Jira Command Line Interface (CLI) app
  • How to update the project lead of a project using the Jira Command Line Interface (CLI) app
  • How to add a Confluence space link to a Jira project
  • How to copy users to another instance
  • How to create projects or sets of issues based on a template
  • How to delete workflow copies and backups
  • How to discover Jira changes
  • How to export JIRA issues to CSV
  • How to get issue labels
  • How to import data from external systems or databases
  • How to integrate Jira and Oracle's Siebel
  • How to limit notifications for automation actions
  • How to remove remote links in bulk
  • How to use linkIssue
  • FAQs on Command Line Interface (CLI)
  • How to handle hidden characters using CLI
  • How to get the list of users and their roles for all Jira projects using Jira Command Line Interface (CLI)
  • How to use runFromIssueList
  • Remove labels for issues in bulk by using Jira Command Line Interface (CLI)
  • How to add remote links to Jira issues using Jira Command Line Interface (CLI)
  • How to get the project list with category and issue count using Jira CLI
  • How to import Jira issues using CSV or SQL
  • How to a create Next-gen project in Jira cloud using Jira CLI
  • How to get the Due Date information with getIssueList action using Jira CLI
  • How to clone a project with issues assigned to inactive or deleted users through Jira CLI
  • Client error while exporting through Jira Command Line Interface (CLI)
  • How to add multiple issues to different sprints using Jira Command Line Interface (CLI)
  • How to create versions in bulk using Jira Command Line Interface (CLI)
  • How to reduce login actions for multiple requests (JCLI)
  • How to use runFromCsv (JCLI)
  • How to delete a workflow scheme using Jira Command Line Interface
  • How to retrieve the last login information of the user(s) using Jira Command Line Interface(CLI)
  • How to set a custom field value while creating a request in Jira Service Desk cloud
  • How to configure a custom cookie in Jira Data Center
  • How to get the licensed user count using Jira Command Line Interface (CLI)
  • How to remove custom field options using field value Id
  • How to delete a workflow using the Jira Command Line Interface
  • How to update custom field options using Jira CLI
  • How to perform screen-related tasks using Jira Command Line Interface (CLI)
  • How to get all the components list using Jira Command Line Interface (CLI)
  • How to configure Agile board using Jira Command Line Interface (CLI)
  • How to update a system field for Jira issue using CLI
  • Why are the template schemes not working?
  • How to migrate attachments from Server to Cloud
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    How to copy users to another instance
    Updated Jan 23, 2020

    How to copy users to another instance

    Jan 23, 2020

    Description

    This describes steps to use the JIRA CLI to copy users from one instance to another for either Server or Cloud instances. Copying all users or all users in a group to a new instance can be automated without scripting. If you need to select specific users, some manual or scripted steps may be needed to do the selection. Treat the techniques described here as examples that can be adjusted based on specific requirements.

    Requirements

    • This requires CLI client version 7.0 or higher.

    • Customize your Atlassian start script to include access to both JIRA instances (jira1 and jira2 in this example) and also to the CSV CLI. See Atlassian CLI Start Script for more information.

    Steps

    Step

    Action

    Example

    Step

    Action

    Example

    1

    Export users from original instance.

    getUserList



    Action
    atlassian jira1 -a getUserList --outputFormat 999 --group jira-users --columns user,name,email,groups --file users.csv

    Result File

    users.csv
    "User","Name","Email","Groups" "admin","Administrator","admin@examplegear.com","jira-users,jira-administrators" "bob","Bob Swift","bob@examplegear.com","jira-users,jira-administrators" ...



    2

    Modify csv file so that the column names match parameter names for the addUser action.

    copyCsv



    atlassian csv -a copyCsv --sourceFile users.csv --file addUsers.csv --findReplace "User:userId,Name:userFullName,Email:userEmail,Groups:group"

    Result file

    addUsers.csv
    "userId","userFullName","userEmail","group" "admin","Administrator","admin@examplegear.com","jira-users,jira-administrators" "bob","Bob Swift","bob@examplegear.com","jira-users,jira-administrators" ...



    3

    Import users to new instance.

    runFromCsv



    atlassian jira2 --action runFromCsv --file addUsers.csv --common "-a addUser --continue" --continue

    Result

    ... Run: -a addUser --userId "admin" --userFullName "Administrator" --userEmail "admin@examplegear.com" --group "jira-users,jira-administrators" User 'admin' added. ... Run: -a addUser --userId "bob" --userFullName "Bob Swift" --userEmail "bob@examplegear.com" --group "jira-users,jira-administrators" User 'bob' added. ....







    {"serverDuration": 14, "requestCorrelationId": "fa5fa91c007d482995e677feb122a0cf"}