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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,502,408
Community Members
 
Community Events
180
Community Groups

List "Lost" Repos

We've recently removed all access from some repositories (including admin rights). As a consequence, we were not able to see them.

 

Luckily, we've been able to "recover" them by going (blinkdy) to their respective admin page and undo this change.

* https://bitbucket.org/<oraganisation>/<bucket_id>/admin/access

 

However, in order to be 100% sure this has been done for every impacted repository, we would need a way to list buckets with no access (or all projects including those, this would work fine as well)

All the API entry points and web pages we've seen are using the rights of the current user to list repo. So we're able to "recover a repo" only if we know it is there.

Is there a way to list these repos with no access rights attached ? 

2 answers

1 vote
Patrik S Atlassian Team Feb 14, 2023

Hello @Arnaud Demarcq ,

Thank you for reaching out to the community!

The public API endpoint to List repositories in a workspace will indeed not return repos that the user has no access to. I went ahead and created a feature request for that endpoint to return the "Lost repos" for the admins of the workspace : 

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. 

As a workaround, while this feature is not implemented, you can create a new group in your workspace and use the below script to add all the repositories to this new group : 

The script will add all the repos existing in the workspace, including the "Lost" repos. You can then check the repo list in the group to identify what repositories you might have missed previously.

Please note the above script was not written by Atlassian developers and is considered a third-party tool. This means that this is also not supported by Atlassian. We highly recommend you have your team review the script before running it to ensure you understand the steps and actions taking place, as Atlassian is not responsible for the resulting configuration.

Thank you, @Arnaud Demarcq !

Patrik S

Thanks a lot. 

I'll have a look a your script and see if we can use it for our account.

Like Patrik S likes this

I wish I could provide you a better answer, but we're stumped as you've already explored the APIs and they are limited by the scope of the user accessing the call.

I will suggest checking the Audit Log under your workspace settings though.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events