The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

get Last connexion of a user.

Deleted user
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
August 6, 2018

Hello,

User the  LoginManager class. 

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

LoginInfo loginInfo = loginManager.getLoginInfo(String userName)

log.error(loginInfo.getLastLoginTime() )
Deleted user
August 6, 2018

Thank you so much, 

I search everywhere except this ...

TAGS
AUG Leaders

Atlassian Community Events