REST API: Create user endpoint responds with a 201(response contains existing user details) if a duplicate user is created

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Low
    • Component/s: Ecosystem
    • None
    • 1
    • Severity 3 - Minor

      Summary

      Environment

      • Jira Cloud

      Steps to Reproduce

      1. Make a POST request to /rest/api/2/user
      2. In the POST body, make the email address match an existing user, the username(name) can be different
      3. Send the request and check the response

      Expected Results

      • A message informing the person who made the request that an account with that email address already exists. Something like "User already exists"

      Actual Results

      • 201 response with details of the user with the existing email address

      Notes

      • A duplicate account is not created
      • Identity advised that they use a 409 response in these cases

      Workaround

      • No known workarounds

            Assignee:
            Unassigned
            Reporter:
            Derrick Nguyen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: