-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 7.1.4, 7.12.1
-
Component/s: REST API
-
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
- relates to
-
JRACLOUD-61772 Unable to query REST API for user by email address
-
- Closed
-