I'm using the Jira Cloud OpenAPI v2 in Java through this guide here: https://blog.developer.atlassian.com/update-to-jira-clouds-swagger-openapi-docs/
I'm trying to return a user by inputting his mail adress, but it doesn't work:
UsersApi usersApi = new UsersApi(apiClient);
User user = usersApi.getUser("example@mail.com", null, null, null);
It says something about not finding anyone with that ID, I guessed that he needed the Atlassian user ID. I also tried this:
UserSearchApi userSearchApi = new UserSearchApi(apiClient);
PageBeanUser pageBeanUser = userSearchApi.findUsersByQuery("example@mail.com", 0l, 50);
But that doesn't work either.
How can I return an user when I have his e-Mail?