Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to update the username of a user in bulk using the app, Jira Command Line Interface.

Instructions

  1. Use the action updateUser with runFromCsv to add users to a group in bulk.
  2. Prepare a CSV file (updateuser.csv) that contains userId and newUserId columns. Enter the userIds userId of the users that are to be modified under the userId column. Under the newUserId column enter the new user IDs that are to be added.
    An example file is shown below: 
    Image Modified

  3. Run the command given below to update the usernames of the users that are provided in the .csv file (updateuser.csv in this example).

    Code Block
    themeMidnight
    --action runFromCsv --file updateuser.csv --common "-a updateUser"  


The parameters used in the above action are:

  • fileName (or path) of the file specified in the command.
  • common: Common parameter string added to all run actions.
Info

It is recommended to test the command in a non-production environment or run the action with the --simulate parameter to verify the behavior before deploying.

...