Forums

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

How to get last login on Jira/Confluence using Rest API for user?

Sanjay Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 7, 2019

We are working on setting up the process to identify last login datetime  information for user in JIRA/Confluence.

The Endpoint for Rest API for the user does not provide the last login on site. This information is available on the user interface of the admin screen for user-management.

Please provide how to retrieve the last login on JIRA/Confluence using Rest API.

We are using JIRA on Cloud hence cannot run the SQL Queries provided on different support pages.

 

Cheers 

 

Sanjay Singh

 

 

 

 

1 answer

0 votes
Shreyance Shaw March 7, 2019

Sanjay,

For JIRA, if you are using Scriptrunner, you can use their Custom REST Endpoint Option to create an API for the same.

Further information can be found here

https://scriptrunner.adaptavist.com/latest/jira/rest-endpoints.html

If you are aware of Groovy scripting then, use the LoginManager to get the last Login info.

https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/security/login/LoginManager.html

Rafael Santos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 4, 2021

In Jira Cloud, I can't import this Method. It's only for Server. Any idea on how to do it on Jira Cloud?

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events