Confluence DC User last login time or User last active

Hi guys,
I wanna get User last login time or User last active.
I have looked for REST API documentation, but it is not available. I want to solve it with java api.
Help me guys.

Hi Dale,

at least for the last successful login (or failed, see here), with Java it can be done this way:

    private final LoginManager loginManager;

    public YourClassName(@ComponentImport LoginManager loginManager) {
        this.loginManager = loginManager;

    public Date getLastLogin() {
        LoginInfo loginInfo = loginManager.getLoginInfo("username");
        return loginInfo.getLastSuccessfulLoginDate();

Hi AnsgarNell,
Thanks, I checked it now.