Creating Multiple Users via POST

Hello, 

 

Is it possible to create multiple users via POST ?

 

 

[

{
"name": "charlie1",
"password": "abracadabra",
"emailAddress": "charlie@atlassian.com",
"displayName": "Charlie of Atlassian",
"applicationKeys": [
"jira-core"
]
},{
"name": "charlie2",
"password": "abracadabra",
"emailAddress": "charlie@atlassian.com",
"displayName": "Charlie of Atlassian",
"applicationKeys": [
"jira-core"
]
}

]

 

 

{
"errorMessages": [
"Can not deserialize instance of com.atlassian.jira.rest.v2.issue.UserWriteBean out of START_ARRAY token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@41286fb1; line: 1, column: 1]"
]
}

1 answer

0 votes

To the best of my knowledge you can't make JIRA create multiple users accounts with a single post.  Both the web UI and the JIRA REST API reference documentation  both only are able to create one user account per interaction.   Most admins are able to get around this either by connecting JIRA to a LDAP instance to populate the user accounts, or in some cases you might be able to create a script to make the separate API calls for each account that would need to be created.

Alternative to that there are third party plugins like Bulk User Creator that might be helpful as well if you need to be creating a large number of accounts in JIRA quickly.

Thanks for your response. I managed to do this via Ansible.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,864 views 12 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot