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,


I logged a request to add this info to the API:

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

@Rik Helsen one more question, is this a call for Jira Cloud ?

the URL kind of gives that away :)
(so yes)

@Rik Helsen thank you for the answer. Do you know how to retrieve the same data from the Jira Server api ?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Friday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

52 views 0 2
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