is their a way to export a list bitbucket groups and their members

Dean Vincent October 15, 2024

I seeking to document which users are using which repos and managed there access more effectively.

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 16, 2024

Hi @Dean Vincent ,

For workspaces that are not administered via https://admin.atlassian.com/ (like the workspaces you have access to) groups with members and permissions can be found in our website, in Workspace settings > User groups. You need to be a workspace admin in order to be able to access workspace settings. In the User groups page, if you select a certain user group you can see its members, and if you select the tab Projects & Repositories you will see which repos this group has access to.

I'm afraid that this info cannot be exported into a file from the UI. You could use our APIs to get the info you want (again, you'll need admin permissions for that).

You can use the following API endpoint to get all groups in a workspace and each group's members:

The following API endpoint can be used to retrieve permissions:

These two endpoints do not support pagination, and if you have a large number of repos, the second endpoint may time out. In this case, you could use the following API endpoint instead for each repository of the workspace:

It's important to note here that access to Bitbucket Cloud repositories may be granted via a group, but it can also be granted directly to a user if that user is added to a repo. If you would like to retrieve users with explicit repo access as well, you can use the following API endpoint for each repo:

Please feel free to reach out if you have any questions!

Kind regards,
Theodora

0 votes
vikram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 15, 2024

Hi @Dean Vincent 

you can do from login to application from admin > user management > groups. You can view members in the group and you can export users and groups and view in excel.

if you have database access below url has query who are not in any group, you need to modify the query to display in a group. 

How do I find a set of users that are not part of one group | Confluence | Atlassian Documentation

Vikram P

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events