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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.