Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-69943

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Low Low
    • Ecosystem
    • None

      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

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

                Created:
                Updated:
                Resolved: