Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jonny Klaas
Contributor
May 14, 2020

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

1 vote
Answer accepted
Michael Kuhl {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2020

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

Jonny Klaas
Contributor
May 14, 2020

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? 

Michael Kuhl {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2020

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
AUG Leaders

Atlassian Community Events