Hi everyone,
I'm writing a plugin for Jira/Bitbucket/Confluence Server, and for some reasons, I need to get a user by searching its email address, then I try to find an API like this:
User user = userService.getUserByEmail(givenEmail)
I eventually found one such API in Jira:
Iterable<ApplicationUser> users = ComponentAccessor.getUserSearchService().findUsersByEmail(email);
But I wonder if there‘re any APIs like that in Confluence or Bitbucket? Or any other APIs that I can use to search users by email address?
Thanks so much.