How do I query JIRA to get a list of user that have never logged

Jeanne Howe
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.
August 19, 2015

We are using Crowd with JIRA to manage users. How do we query to find all users in the jira-users group that have never logged into JIRA?

 

We are JIRA 6.4 and Crowd 2.7

1 answer

1 accepted

4 votes
Answer accepted
Guilherme V.
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 19, 2015

Hi there,

You could try this one:

select user_name from cwd_user where user_name not in
(SELECT cwd_user.user_name
FROM cwd_user, cwd_user_attributes
WHERE cwd_user_attributes.user_id = cwd_user.id
AND cwd_user_attributes.attribute_name = 'lastAuthenticated');

Cheers,

Suggest an answer

Log in or Sign up to answer