Forums

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

Query Users by project

admin
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 23, 2019

I am using JIRA cloud. How do I query for users by project? 

 

curl -D- \
-u username:token \
-X GET \
-H "Content-Type: application/json" \
https://skillhub.atlassian.net/rest/api/3/user/search/query/projectid=10000

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 6, 2019

Hello Bhalachandra,

Welcome to Atlassian community!

To return Users of a project using REST API, you must specify what kind of relationship this user has with the project.

Better explaining, you must specify which permission or roles these users must have with that project to be returned in the REST API call. Let me give you an example:

Let's suppose you would like to query for all the users who have the Browse projects permission in the project TEST. This would be call:

https://skillhub.atlassian.net/rest/api/3/user/viewissue/search?projectKey=TEST&query=%

For more information about how you can perform other queries to return users, you can refer to both documentation below:

User search - JIRA Cloud API

Examples of Searching using REST API

Let us know if this information helps.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events