Forums

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

get Last connexion of a user.

valerian Baillet August 6, 2018

Hi,

I develop a plugin and I try to get the latest connexion of a user. I didn't find anything in java. 

Somebody have an idea,

Best

1 answer

0 votes
Alexey Matveev
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.
August 6, 2018

Hello,

User the  LoginManager class. 

LoginManager loginManager = ComponentAccessor.getComponent(LoginManager.class);

LoginInfo loginInfo = loginManager.getLoginInfo(String userName)

log.error(loginInfo.getLastLoginTime() )
valerian Baillet August 6, 2018

Thank you so much, 

I search everywhere except this ...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events