The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Bitbucket REST API: Get IDs of multiple users in one GET request

Kaliyug Antagonist
April 22, 2020

On-prem server Bitbucket 6.10.

Now, I send a GET request as per the user API for a user to retrieve his ID.
Request:

https://git.company.net/rest/api/1.0/users/p950a

Response:

{
"name": "p950a",
"emailAddress": "some.name@company.com",
"id": 56111,
"displayName": "Some Name",
"active": true,
"slug": "p950a",
"type": "NORMAL",
"links": {
"self": [
{
"href": "https://git.company.net/users/p950a"
}
]
}
}

I wish to retrieve the "id" from the response. This is inefficient and tedious since I have at least 10 users to start with. Is there a way where the user slugs can be sent as a list or multiple key-value pairs and their IDs can be received, preferably, like a list?

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events