Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira REST api for create a user returns 500 although it's working

Daniel.Lopez (CTL)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2019

I'm using a REST api call like `rest/api/3/user` , POST,

with something like

{
    "name": "name",
    "emailAddress": "my.name@organization.com",
    "displayName": "displayName",
    "password": "asdf",
    "notification": "false"
}

in the body. When I'm doing this, the api call is working and the user is created properly. However, I'm getting as a status code sometimes 500 and other times 201 without any evident reason.

Do you understand what  is happening here?

The user is created properly both in the 500 cases and in the 201 cases.

Thanks

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 1, 2019

Hi Daniel,

Thanks for reaching out, and there was something very similar in the version 2 API with a POST to "rest/api/2/user", but this one was fixed already, viewable at the link below:

Also, I do know that the version 2 and Version 3 endpoints for "rest/api/X/user" are currently experimental endpoints as are not fully rolled out as stable, so some errors can be expected, but in testing this query out locally I was not able to trigger the 500 errors, and I'm only getting the 201 successful on the POST's.

If we can narrow this down I would be great to get a bug report in place to get this fixed.  Are you able to spot any commonality in the queries you are running when the 500 error is being triggered vs the 201 calls?  

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events