Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

/groups API support in Bitbucket cloud v2 APIs

Rajinder Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 9, 2024

/1.0/groups API is very useful to manage Bitbucket Cloud user groups, including listing down specific users under particular group. But v1 APIs are deprecated and I am not able to find corresponding API in Bitbucket Cloud v2 API documentation. 

There is API /2.0/workspaces/{workspace}/members available in v2 but it returns complete list of users, including inactive users and with limited filtering options.

It would be very useful to have these /groups APIs available in v2 or at least add more filtering options added to /members API.

I need to get list of users which are part of particular group and if this can be achieved using existing API somehow then please share the details.

Thanks.

1 answer

1 accepted

0 votes
Answer accepted
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 10, 2024

Hi Rajinder,

Although the API is deprecated - it's still supported as it is still in a transitional state to v2 - so you can continue to query it without any issues.

There is an existing feature request to add more filtering to our api's, and to upgrade groups to v2 - you can Watch these to receive future updates related to it and Vote for it to improve its visibility with regard to customer demand:

If you need a list of workspace users, you can also export this as a csv file and it will specify who is inactive/active without needing an API call:

Cheers!

- Ben (Bitbucket Cloud Support)

Rajinder Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2024

Thank you Ben, for your response and for creating the feature requests. I’ve upvoted them and added the tickets to my watch list.

The exported list wouldn’t help in my case, as I need the latest list of users each time, including newly added users to Bitbucket.

However, I was able to get the /2.0/members API to work for me indirectly by using an exclusion list to filter out inactive users or those in other groups. It would have been much easier if these options were available natively.

Waiting for these tickets to be prioritized soon!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
atlassian, forge, forge learning path, atlassian learning, cloud app development, forge app development, build forge apps, atlassian certification, developer training, jira app development, confluence app development, automation, ui frameworks

Turn Ideas into Atlassian Apps 📱

From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.

Start Learning
AUG Leaders

Atlassian Community Events