Forums

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

Rest API - How get list of users in project with specific role assigned

Dawid Ankowski March 25, 2022

Hi.
I'm would like to get list of users from Jira project with assigned specific role via REST API. Is there is way to do that?

1 answer

1 accepted

1 vote
Answer accepted
Alexis Robert
Community Champion
March 25, 2022

Hi @Dawid Ankowski ,

 

you can get this information thanks to the following REST API : https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-project-roles/#api-rest-api-2-role-id-get

 

Basically you'll need to get the role ID first, and then pass the project key and role ID to get a list of users in return. 

This page also has other methods that are useful when dealing with project roles.

 

Let me know if this helps, 

 

--Alexis

Dawid Ankowski March 25, 2022

Thanks Alexis! It worked :)

jahanathan.saminathan December 19, 2022

Hi @Alexis Robert : Thanks for your input. 

But still I am not able to fetch the list of users available on my Project. 

I can find assignable users list with below Rest API, but not the already assigned users !

https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-user-search/#api-rest-api-2-user-assignable-multiprojectsearch-get

 

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

Suggest an answer

Log in or Sign up to answer