The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Exporting users from Jira projects

Deepak
Contributor
August 16, 2021

Dear community,

I have project with more then 200 users. Now I would like to export users from the project into Excel. Is there any DB Query to filter out users from the project.

 

Regards,

Deepak

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Brant Schroeder
Community Champion
September 9, 2021

@Deepak 

Something like this should work.

SELECT
u.user_name,
u.last_name,
u.first_name,
u.email_address,
m.parent_name,
substring( ua_lastlogin.attribute_value, 0, len(ua_lastlogin.attribute_value) - 2 ),
u.active
FROM cwd_user u
LEFT JOIN cwd_user_attributes ua_lastlogin on u.id = ua_lastlogin.user_id and ua_lastlogin.attribute_name = 'lastAuthenticated'
LEFT JOIN cwd_membership m on u.id = m.child_id
ORDER BY u.user_name asc, u.last_name asc, u.first_name asc, m.parent_name asc

Deepak
Contributor
September 16, 2021

Thank for the query @Brant Schroeder 

DEPLOYMENT TYPE
SERVER
VERSION
8.5.3
TAGS
AUG Leaders

Atlassian Community Events