Script which checks for user accounts which are not used since X months - how to?

Rumceisz September 21, 2015

Hi Everyone,

we'd check our user database and hihghlight those users that did not login since >1 year in JIRA. Do you have such script?

Thanks,
Rumi

1 answer

0 votes
Deniz Oğuz
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.
September 22, 2015

if you have access to DB, following query should return last login time of users

 

SELECT cwd_user.user_name, cwd_user_attributes.lower_attribute_value from cwd_user LEFT OUTER JOIN cwd_user_attributes on cwd_user.id = cwd_user_attributes.user_id where cwd_user_attributes.attribute_name = 'login.lastLoginMillis';

Suggest an answer

Log in or Sign up to answer