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: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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 Champion
April 15, 2022

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

TAGS
AUG Leaders

Atlassian Community Events