Creating Multiple Users via POST

fii July 24, 2017

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
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 28, 2017

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.

fii July 28, 2017

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

Suggest an answer

Log in or Sign up to answer