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

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

Bobswift CLI JIRA / Export all User IDs and remove User from List

Hi,

I'm looking for a way to export all of our users with there corresponding userID and afterwards I will remove most of them with the removeUser and runfromList command. 

As far as I seen, I can only show the userID of a single user not with the getUserList command.  

Is there any other option?

Background: We've to split our JIRA to two instances and before I have to clean up all users by hand I'm looking for a smarter way to do this. 

1 answer

1 accepted

Hi @Jonny Klaas - To show userId in getUserList  add --outputFormat 999 to the command.  That will show all available columns.  You can then add the --columns parameter to limit the columns to only the ones you need. 

When trying to decide on columns I find it useful to add --limit 1 so that getUserList shows me just the columns headings and one data row so it easier to read.

This article might also be helpful: https://bobswift.atlassian.net/wiki/spaces/SUPPORT/pages/269464561/How+to+copy+users+to+another+instance

Thanks Michael, that helped me out! :) 

Oh I see that the "removeUser" command is not applicable for cloud? Is this correct? 

If so, is there any other chance to bulk remove the users from list? 

The removeUser action does work for cloud.  You can always verify this by clicking through the action link to see the full details on the action.

Like wangzehong likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

316 views 3 14
Read article

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