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

Unable to pull private projects list with API call

puru kovvuri April 15, 2022

Hello all,

 

I'm unable to pull private projects and repos list using the api https://api.bitbucket.org/2.0/workspaces/UUID/projects. When i do a API call, i'm getting only public projects list within my organization workspace.

 

Thanks in advance!!

2 answers

1 accepted

1 vote
Answer accepted
Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2022

Hi, @puru kovvuri, thank you for reaching out to Atlassian Community.

Could you please confirm which type of authentication you are using when making this request?

In case you are using Basic Auth, we have deprecated account passwords, so you need to use an app password (if you are not using one already). If you are using an app password, make sure it has all the necessary permissions. And if you use OAuth, permissions could also be an issue.

This is an example (utilizing an app password) you can follow: 

curl -X GET -u username:apppassword https://api.bitbucket.org/2.0/workspaces/{workspaceID}/projects

Please feel free to share any additional questions or concerns regarding this case.

Kind regards,
Caroline

puru kovvuri April 22, 2022

Thank you !!

0 votes
Ed Gaile _Atlanta_ GA_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2022

What are you passing in as the user/auth for the REST API call? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events