How can i find the last time a user logged in from Jira from an external api?

I'm developing an external application which needs to know when the last time users logged in to Jira. JIRA is using Crowd for the user directory. How can I query via REST or another method (to JIRA and Crowd) to find out this information?

I know this information is recorded as I can see it when I view the user in Jira.

3 answers

1 vote
Bruno Vincent Community Champion Dec 15, 2015

Hi Steven,

As far as I know there is no such REST API. But you can get that information directly from the database:

Best regards,

Bruno

I logged a request to add this info to the API: https://jira.atlassian.com/browse/CONFCLOUD-64260

Hi Steven,

I checked JIRA REST API and do not see a method that returns user info along with last loging time. Also I do not see last login time in Crows REST API doc.

I guess you need to develop a custom JIRA REST addon to serve the info you need.

That's what I thought. So I need to make a add-on for JIRA and call this information from an internal Java API?

Looks like this is the only way.

so what attribute is needed ?

See Description above: "last time users logged in to Jira." (and "last time users logged in to Confluence"!)

@Jeroen Habets thank you!

I was asking the exact name of the attribute to expand the lastLogin date

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Sunday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

110 views 0 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you