Missed Team ’24? Catch up on announcements here.

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

New workspaces api 2.0 not returning all workspaces

karan_exe July 1, 2020

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
Atlassian Team members are employees working across the company in a wide variety of roles.
July 1, 2020

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

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

Karan M July 1, 2020

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

Sam Slotsky August 4, 2020

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events