Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Error "The parameter "username" is not supported.

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 answer

0 votes
Tessa Tuteleers Community Leader Feb 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 

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

677 views 17 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you