Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to bulk modify user ids using CLI?

Hi, I have a file with predefined User IDs and its associated Email IDs listed, now I want to update the User IDs to Email IDs in bulk. How can this be done using Bob Swift CLI.

I can use updateUser action to update a single User ID but how multiple User IDs can be updated in bulk?.

Please help me with this...

2 answers

1 accepted

0 votes
Answer accepted

Hi @Vineeth S Holla

Thanks for posting your requirement!

We are from the Bobswift support team and we have created a support ticket for your request. Please access the Support request https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-5518 and once you signup, please let us know your username so that we can add you to the reporter of the support request.

To modify userId's in bulk, please use the CLI action as given below.

--action runFromCsv --file updateuser.csv --common "-a updateUser"   

and modify the column name for the email address in your CSV file as "newUserId". Please see the screenshot below for your reference.

2020-12-29_11-56-55.png.   

The action will update the UserId's of the respective users mentioned in the CSV file with the corresponding email addresses from the file.

Please let us know if you have any questions.

 

Thanks,

Reshma

Thanks a lot Reshma, this is working as per my requirement...

Like Reshma _Appfire_ likes this

No Sanjana, I have tried the solution present in the link, but I am getting the error saying: 'xargs' is not recognized as internal or external command, after running below line:

cat data.txt | xargs -n 2 sh -c './jira.sh --server https://SERVER --user USER --password PASSWORD --action updateUser --userId $0 --userEmail $1'



Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you