Unable to query REST API for user by email address

XMLWordPrintable

    • 7.01
    • 2
    • Severity 3 - Minor
    • 1

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Summary

      API endpoint rest/api/2/user does not allow searching by email address, only username.

      My test user is an admin with Global Permission "Browse Users". I have tested directly with curl, a web browser, and the jira-ruby gem.

      The documentation says finding by email address should work:

      https://docs.atlassian.com/jira/REST/latest/#api/2/user-findUsers

      Environment

      Latest JIRA Cloud

      Steps to Reproduce

      1. Using a user with Global Permission "Browse Users"
      2. Query by username https://example.atlassian.net/rest/api/2/user?username=fred
      3. Query by email address https://example.atlassian.net/rest/api/2/user?username=fred%40example.com

      Expected Results

      Both queries should return the same user object.

      Actual Results

      The first query works, the second query returns an error:

      {"errorMessages":["The user named 'fred@example.com' does not exist"],"errors":{}}
      

      Workaround

      None

      Similar Reports

              Assignee:
              Unassigned
              Reporter:
              AntonC
              Votes:
              28 Vote for this issue
              Watchers:
              24 Start watching this issue

                Created:
                Updated: