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: 

How to find users in a team

Derek Maffett
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 1, 2019

So I'm building a tool for making PR's, and I'm running into an issue with finding members. 

Under the regular website interface, it's possible to search for users to include as reviewers if they're within your scope to interact with. I'm trying to replicate this functionality via the API, but can't see any way to do so. Via the regular website, I could go to 

https://bitbucket.org/SomeTeam/profile/members

and the members are listed there with their username and display name. These are (if I'm not mistaken) the same users I could tag in a PR. But if I go to

https://api.bitbucket.org/2.0/teams/SomeTeam/members

I'm not authorized to access it. I checked and if I'm an admin of the team I do have access to this API endpoint, and if I remember from before it's allowed if I'm a member as well. 

It seems that in my case I'm not listed as an actual member of the team, yet somehow have another relationship that lets me access one of the repos and see team members via the html interface, but *not* the api interface. 

So my basic question is - why is there a discrepancy in access rights between the html interface and the api, and how can I find team members via the api?

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events