Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,512
Community Members
 
Community Events
165
Community Groups

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

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

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!

Alex

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
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

285 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you