Forums

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

Blunk Delete Users from Jira with Bob Swift CLI

fkoehn September 8, 2020

Hey guys

 

Im using Bob Swift CLI to delete alot of users.

I have the users to delete in a .csv file that looks like this:

<<A>>

userId

<userID>

<userID>

<userID>

...

 

the command i run is:

 

acli jira --action runFromCsv --file "C:\Users\NAME\ACLI\jirauser.csv" --common "--action removeUser --userId""" --server http://<URL> --user <USER> --password <PASSWORD>

i get the error that --userId does not exist

user with id '"' not found.

 

How do i give the command the right ID's from the CSV so that all users are deleted?

I would appreciate the help alot.

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Deleted user September 8, 2020

Hi @fkoehn ,

We are from the BobSwift support team and would like to inform you that we have created a support request SUPPORT-4635 on your behalf in our portal.

Request you to signup to the portal and let us know so that we can make you the reporter and will be able to access the ticket.

Please find the below link to signup to the portal: https://bobswift.atlassian.net/servicedesk/customer/portals/1

Can you please run below the CLI action to remove the list of users in bulk from the CSV file.

--action runFromCsv --file users.csv --common "--action removeUser"

We see that you are using --userId"" in your command, please remove that parameter and try to execute the CLI action.

Hope it helps.

If you still see the issue, please provide the below details to troubleshoot the issue further:

  • Let us know the Jira, CLI app versions that you are using.
  • Share with us the CSV file which you are using?
  • Share with us the debug logs by adding the debug parameter in the command below
    --action runFromCsv --file users.csv --common "--action removeUser" --debug

Once the debug logs are displayed on the screen, please attach the file to the support request by copying the complete logs along with the action command.

Thanks,
Raja

fkoehn September 9, 2020

First of all thanks for the fast reply and for creating a Ticket in your Forum on my behalf.

Please close the Ticket in your Forum, as your idea already worked out fine :)


I ran my original command without the --userId"" and it is now deleting users in Jira based on my CSV file.

Thanks again for the input!

Deleted user September 9, 2020

Hi @fkoehn ,

Glad to know that the issue is resolved with our suggestions. We are happy to help you!!

Thanks,
Raja

Suggest an answer

Log in or Sign up to answer