Forums

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

User account listing for JIRA Server

Bob Vasey December 4, 2020

Looking for information on exporting user account information like, name, email address and last used date. Or the ability to run a script to produce locally.

Thank you in advance for any useful information.

 

1 answer

0 votes
Kurt Klinner
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.
December 4, 2020

@Bob Vasey 

 

Hi Bob,

one option would be to query the database directly.

Below an example that should work on mysql

 

Hope that helps

 

Cheers

Kurt

SELECT u.user_name, u.first_name, u.last_name, u.email_address
from_unixtime((cast(attribute_value AS UNSIGNED)/1000)) AS "Last Login"
FROM cwd_user u
JOIN (
SELECT DISTINCT child_name
FROM cwd_membership m
JOIN licenserolesgroup gp ON m.parent_name = gp.GROUP_ID
) AS m ON m.child_name = u.user_name
JOIN (
SELECT *
FROM cwd_user_attributes
WHERE attribute_name = 'login.lastLoginMillis'
) AS a ON a.user_id = u.id
JOIN cwd_directory d ON u.directory_id = d.id
ORDER BY "Last Login" DESC;

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events