The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Error "The parameter "username" is not supported.

Anushaath
February 17, 2021

I need to search for a user. And im doing that by search with a email using :

 

GET /rest/api/2/user/search?query={email}

I get the error "The parameter 'username' is not supported". I'm not even passing the username here. Is the query param not supported for JIRA server and only for JIRA Cloud?
If so, with username not supported, how as a JIRA Server api can I search for a user?

1 comment

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

Piet Pieters
Community Champion
February 17, 2021

Hi @Anushaath , 

to search for a user by email, you need this one following the info here

baseurl/rest/api/2/user/search?username="email@adres.com"

 If you want to use the one above with "query", you can use: 

baseurl/jira/rest/api/2/user/picker?query="email@adres.com"

Hope this helps! 

  • Tessa 
Anushaath
February 22, 2021

Thank you @Piet Pieters that's awesome. So email can be sent to the 'username' field to fetch the user too.

TAGS
AUG Leaders

Atlassian Community Events