Forums

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

Can i get JIRA REST API to find all the users Assigned for a particular project

druben
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 25, 2021

Can i get JIRA REST API to find all the users Assigned for a particular project

1 answer

0 votes
Bill Sheboy
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.
May 25, 2021

Hi @druben -- Welcome to the Atlassian Community!

You can find all of the assignable users with:

https://docs.atlassian.com/software/jira/docs/api/REST/1000.1568.0/#api/2/user-findAssignableUsers

Or, if you want to narrow the permissions set for the project, please try this:

https://docs.atlassian.com/software/jira/docs/api/REST/1000.1568.0/#api/2/user-findUsersWithAllPermissions

Best regards,

Bill

druben
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 26, 2021

Hi Bill,

I was able to get the project name and role with the help of this api
GET /rest/api/2/project/{projectIdOrKey}/role
But i was not able to access the id's to get the list of users for that particular role because of permission issues.

Is there any way or api to get the list of users "by giving projectId and group name"
so that we get the list of users for that project and group.

For Example:
projectName: JIRA
group: development
If we put these 2 in a RestApi we get the list of users

or any other way that would help me out?

Bill Sheboy
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.
May 26, 2021

Hi!  If you search on that REST API documentation page, you will find a method for group searches, but it does not account for project searches.  That is why I suggested starting from the user method, which does support searching by project but not by group.

You may want to also check in the develper community to see if someone has ideas from there: https://community.developer.atlassian.com/

Suggest an answer

Log in or Sign up to answer