For Bitbucket cloud, we have rest api to get the currently loggedin user details stated as '/2.0/user', similarly how can I get the details of current user for bitbucket server?
Thanks in advance!
There is no REST API to get this info that I can find.
If you're willing to write your own plugin (in Java), it's easy to get:
ApplicationUser currentUser = authenticationContext.getCurrentUser();
If you write a plugin you can publish your own REST API that prints the result of that call.
It looks like you're new here. Sign in or register to get started.