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 :) 

 

1 answer

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.

Suggest an answer

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

Atlassian Community Events