Creating multiple users

Rick Singh January 24, 2018

Hello,

We just purchased JIRA Core and JIRA Software.  Is there a way to set up multiple users in an efficient manner or do I have to set each user individually.

Please let me know

 

Regards


Rick

2 answers

1 accepted

0 votes
Answer accepted
Sebastian Kleinholz
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.
January 24, 2018

Solution A: Connect Jira to an LDAP server. There you can do mass creation.

Solution B: Use the API

curl -D- -u user:pass -X POST --data {"name":"user1","password":"12345678","emailAddress":"user1@mail.com","displayName":"User One","applicationKeys":["jira-core"]} -H "Content-Type: application/json" http://servert:8080/rest/api/2/user/

 Wrap a bash shell script around to fire multiple creates.

The links to examples and API (user create).

Note: This API call is marked as experimental.

Tamilselvan November 7, 2019

Hi Sebastian,

 

Using REST API, how to create multiple users in jira.

I have written the following code, but it returns error:400 response


$JSON = @"
{
"name": "user1",
"emailAddress": "user@atl.com",
"displayName": "user1",
"applicationKeys": [
"jira-core"
]

}

"@

Invoke-RestMethod -Uri http://localhost:8080/rest/api/2/user -Method POST -Body $JSON -ContentType "application/json" -Headers $headers

$JSON2 = @"
{
"name": "user2",
"emailAddress": "user2@atl.com",
"displayName": "user",
"applicationKeys": [
"jira-core"
]

}

"@


Invoke-RestMethod -Uri http://localhost:8080/rest/api/2/user -Method POST -Body $JSON2 -ContentType "application/json" -Headers $headers

0 votes
Rick Singh January 25, 2018

Thank you very much for your help.  This works.


Regards


Rick

Suggest an answer

Log in or Sign up to answer