/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.
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)
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.