-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Low
-
Component/s: Ecosystem
-
None
-
3
-
Severity 3 - Minor
Summary
When using the POST to /rest/api/2/user endpoint to create users that have been deleted from the UI, you will get an error like this instead:
'{"errorMessages":[],"errors":{"username":"A user with that username already exists."}}'
Environment
Cloud With JIRA.
Steps to Reproduce
- Create a new user using the rest API endpoint and a payload like this:
{"displayName": "testuser", "emailAddress": "example@email.com", "name": "testuser"}Note that the user will be created.
- Go to /admin/users and delete the newly created user.
- Re-run the REST call to create the user with the same payload as before.
Expected Results
The User is recreated exactly as specified.
Actual Results
You get a 400 response code and this error:
'{"errorMessages":[],"errors":{"username":"A user with that username already exists."}}'
No user is created.
Notes
N/A
Workaround
There is no known workaround.