I need to take an export of JIRA users from a particular project . How can I do it?

Priyanka June 17, 2022

I need to take an export of JIRA users from a particular project . How can I do it? It should be an export of all users in that JIRA project with their respective roles. Kindly advise.


2 answers

0 votes
Alex Koxaras _Relational_
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 17, 2022

Hi @Priyanka and welcome to the community!


I would suggest a solution like below:


Fetch all the available roles for a project using the GET /rest/api/3/project/{projectIdOrKey}/role . Then for each of the project roles that will be fetched in the previous request, call the below request to get the list of users

GET /rest/api/3/project/{projectIdOrKey}/role/{id}


Let me know if that helps!


0 votes
Radek Dostál
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 17, 2022

There's a pretty solid REST interface for getting role members https://docs.atlassian.com/software/jira/docs/api/REST/8.22.3/#project-getProject


When you open the example response, in the json, it contains "roles" - and this will contain a hyperlink to get users for each of your project roles. From there it's just about data collection.


So, what you can get out of box is users per role, but not quite the "roles for user". If you need specifically the latter, then that'd be an extra step to build it, based on the above data.

Suggest an answer

Log in or Sign up to answer