Forums

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

Active user list from linux project wise

Suma Pralhad Kustagi
Contributor
June 9, 2023

Hi, 

 Can you please help me to get user list with their name, userid and email address

from jira server( linux login with postreg db).

 

Regards,
Suma

3 answers

2 accepted

1 vote
Answer accepted
Evgenii
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 9, 2023 edited
Suma Pralhad Kustagi
Contributor
June 9, 2023

@Evgenii thank for the response. This would yeild in providing last login but i would need project wise active user list

Like • Sanjen Bariki likes this
0 votes
Answer accepted
Sanjen Bariki
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.
June 9, 2023

Hi @Suma Pralhad Kustagi ,

 

Welcome to Atlassian community!

Please use the below command to connect with PostgreSQL dB in Linux.

  • psql -U <username> -d <database_name>

Once you are connected to the database, execute the following SQL query to retrieve the user list

  • SELECT lower_user_name AS username, display_name, email_address FROM cwd_user;

 

Please accept the Answer If it helps you.

 

Thanks

Regards,

Sanjen 

0 votes
Sanjen Bariki
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.
June 9, 2023

 

Hi @Suma Pralhad Kustagi 

 

Greetings.

If you need the the list project wise active list.

Please user the below query.

SELECT lower_user_name AS username, display_name, email_address, p.pname AS project_name
FROM cwd_user u
JOIN projectroleactor pra ON u.directory_id = pra.directory_id AND u.lower_user_name = pra.roletypeparameter
JOIN project p ON p.id = pra.project_id;

 

 

 

Please accept the answer If it helps you!

Regards,

Sanjen Bariki

Suma Pralhad Kustagi
Contributor
June 12, 2023

@Sanjen Bariki I get pra.directory_id does not exists..

Suggest an answer

Log in or Sign up to answer