It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Creating multiple users

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

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.

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

Thank you very much for your help.  This works.


Regards


Rick

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

303 views 1 3
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you