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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,725 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you