Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events