I have a bitbucket team which has several repositories but I forgot the user password to login. I have the user password credentials for team through which I can access and clone the repo. Is there a way to find out the names or link to repositories in this scenario? Any API or git command would do. I have searched all way on bitbucket site but could not find any information.
You can test listing repostories with the REST Browser API, entering the credentials that you do have, and testing a:
https://bitbucket.org/api/1.0/user/repositories/
Or, in your case, selecting the 2.0 API:
https://bitbucket.org/api/2.0/teams/{teamname}/repositories
(replace {teamname}
by the name of the team)
Th OP Anuj adds in the comments:
I made it work by asking the administrator to creating a user for me.
By default, the bitbucket team user is disabled.
The following cURL command will give all the repositories.
curl -s https://api.bitbucket.org/1.0/users/{teamname}/ -u {repo_user}:{repo_password}
You can test listing repostories with the REST Browser API, entering the credentials that you do have, and testing a:
https://bitbucket.org/api/1.0/user/repositories/
Or, in your case, selecting the 2.0 API:
https://bitbucket.org/api/2.0/teams/{teamname}/repositories
(replace {teamname}
by the name of the team)
Th OP Anuj adds in the comments:
I made it work by asking the administrator to creating a user for me.
By default, the bitbucket team user is disabled.
© 2022 - 2024 — McMap. All rights reserved.