Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get the currently loggedin user in Bitbucket server?

Khushboo Mulani October 24, 2018

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!

1 answer

0 votes
Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2018

 

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. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events