Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

New workspaces api 2.0 not returning all workspaces

Hi,

I have been trying to use the new workspace api to list all workspaces the user has access to as a member.

I tried using https://api.bitbucket.org/2.0/workspaces?permission = "member" which returns 4 workspaces for my account.

However when i use the same account and login to web and go to "All workspaces" located at https://bitbucket.org/account/workspaces/ i can see 9 workspaces (3 of which i am admin and 1 as collaborator, remaining 5 are workspaces that im seeing as i have access to some of the repositories within these workspaces) 

I tried using another api which returns the same 4 results https://api.bitbucket.org/2.0/user/permissions/workspaces/?q=permission="member"

Can u please direct me to the correct param value or api to use to retrieve all 9 workspaces as a member?

Thanks 

1 answer

0 votes
Tyler T Atlassian Team Jul 01, 2020

To get all workspaces, try this workspaces endpoint without the permission filter.

https://api.bitbucket.org/2.0/workspaces

I tried without filters and still get the same 4 results. Not the 9 that shows up on the web page.

Would it be because im not really part of the workspace, but have write access to a few repos within the missing workspace? Still im trying to find a way to replicate bitbucket page and list all workspaces.

This issue is not specific to my account. I built an app and lots of users have complained that they are not able to view their workspaces. This is the app https://play.google.com/store/apps/details?id=com.lh.gitapp.bitbucket&hl=en

Thanks

Can confirm! I'm experiencing the same issue with the workspaces API.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

366 views 2 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you