Details
-
Bug
-
Resolution: Won't Fix
-
Low
-
7
-
Severity 3 - Minor
-
Description
Summary
Per API - Latest: Create USER API You can create as many user accounts as you want using the same e-mail. Only erring is username is already in use.
Environment
- JIRA v7.2.0-OD-05-022
- Tested With POSTMAN and Direct CLI vi curl
Steps to Reproduce
- POST to API endpoint https://<INSTANCE_NAME>.atlassian.net/rest/api/2/user
- BODY:
{ "name": "<first_username>", "password": "<password>", "emailAddress": "<email@example.com>", "displayName": "<Full Name>", "notification": "true" }
- Do a second POST only changing the Username:
{ "name": "<second_username>", "password": "<password>", "emailAddress": "<email@example.com>", "displayName": "<Full Name>", "notification": "true" }
Expected Results
Fail to create Second Account with error:
{ "errorMessages": [], "errors": { "emailAddress": "This email belongs to <first_username>." } }
Actual Results
User is created causing duplicate accounts
Notes
Testing Discovered:
Workaround
Manually Delete second user per:
- https://confluence.atlassian.com/cloud/add-edit-and-remove-users-744721624.html
if the user has contributed content or comments on your site, you will not be able to delete them, until the content is also deleted
Attachments
Issue Links
- is related to
-
JRASERVER-60454 API Endpoint Create user EXPERIMENTAL POST /rest/api/2/user Not avaliable
- Closed
- is superseded by
-
JRACLOUD-69943 REST API: Create user endpoint responds with a 201(response contains existing user details) if a duplicate user is created
- Closed
- relates to
-
JRASERVER-60454 API Endpoint Create user EXPERIMENTAL POST /rest/api/2/user Not avaliable
- Closed
- mentioned in
-
Page Loading...