How to get users assigned to Jira Project and their corresponding Roles

jahanathan.saminathan December 19, 2022

My requirement is:

  • Fetch list of Users available in the Project
  • Fetch List of Roles assigned to Users

Unfortunately I am not able find any REST APIs for both of these operations !

2022-12-19_15h49_17.png

Can you please help me. Thanks :) 

 

2 answers

1 accepted

5 votes
Answer accepted
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 19, 2022

Hi,

You need to use this API

rest/api/2/project/{projectIdOrKey}/role

you'll get all the role in your project then use this API to get all users that belong to this role

/rest/api/2/project/{projectIdOrKey}/role/{id}

https://docs.atlassian.com/software/jira/docs/api/REST/9.3.2/#api/2/project/{projectIdOrKey}/role

jahanathan.saminathan December 22, 2022

@Mohamed Benziane : Yes it worked ! thank you so much for your suggestion :) 

May be Atlassian documentation should be updated for this Get Project Role REST API like "this will return the assigned list of users".

Like # people like this
Faiyaj Sarjekhan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2024

They need to have a straightforward API which would return the user with associated project roles.

0 votes
Grace Tan Chia Me August 29, 2024

I have similar question on how to extract list of user and list of their respective roles in each of projects. Can i do without using API? Thanks

Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 30, 2024

In jira cloud this not possible without API. In DC may be you can use the database to get the data you need.

Grace Tan Chia Me September 1, 2024

Thanks for responding! I'm referring Jira web (not Jira cloud). Please provide steps if possible. Appreaciate the help. Thanks a lots

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events