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?
Thank you @Tessa Tuteleers that's awesome. So email can be sent to the 'username' field to fetch the user too.