-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Low
-
Component/s: Ecosystem
-
1
-
Severity 3 - Minor
NOTE: This bug report is for JIRA Cloud. Using JIRA Server? 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
- is related to
-
JRASERVER-61772 Unable to query REST API for user by email address
-
- Gathering Impact
-