Details
-
Bug
-
Resolution: Fixed
-
High
Description
How would I retrieve a team where the calling user has access to at least one of the repositories belonging to the team but has not got team member access to the team itself? I have tried the following but none of them seem to give me the team I am looking for.
https://api.bitbucket.org/2.0/teams/?role=admin
https://api.bitbucket.org/2.0/teams/?role=member
https://api.bitbucket.org/2.0/teams/?role=contributor
The use case here is that I am attempting to retrieve all repositories that the user has access to, I have a scenario where the user has access to a repository belong to a team owned by a different user but does not have member access to the team itself. I wish to retrieve this repository, but cannot as the repository resource requires a team name which I cannot retrieve.
Looking at the description for the contributor value in the role parameter in the documentation:
"returns a list of teams which the caller has write access to at least one repository owned by the team."
I feel like contributor should cover this issue but it only seems to be giving me back the same response as member does.