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 vote

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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 2 hours ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

53 views 3 4
Read article

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