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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for your help. This works.
Regards
Rick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.