Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Strict matching on user query in V3 REST API

Adrian Danemayer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 20, 2023

I am trying to perform user lookups using the REST API but keep getting multiple results for "Loose" matches. For example, if I issue the API call below I get multiple matches for users with similar displayName values. I want to enforce strict matching but cannot seem to accomplish this, even when using a variety of escaped double-quotes etc.

https://<company>.atlassian.net/rest/api/3/user/search?query=%22Bob%20Loblaw%22

 

I have also tried using the property value 'displayName' but that returns the same result set. When I provide the same user string "Bob Loblaw" in the Jira Cloud User search page, it correctly returns the single matching user.

 

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-get

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events