I am using confluence server 7.13.7. I want a REST API to get the currently logged-in user's username so I can use it in other API calls to fetch more details about the user further.
I know of a way by using the snippet:
var userFullname = $("#user-menu-link").attr("title");to get the current user's username. But, in my use case; I am in need of a REST API.