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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How get the list of repositories that the user does not have access?

How get the list of repositories that the user does not have access?

1 answer

Hi @ramakrishna

You can't build this list easily, you will need to check each repository manually.
There is a feature request for an entry point to check if a given user has write access, which could be used to build such list, but this is just a feature request: [BCLOUD-8542] Determine whether authenticated user has "write" access to a repository?.

In case you think we should have a different entry point via REST for such report, please share what in your opinion would be the parameters send and returned and I'll open a feature request for you.

Yes, I am asking fore Rest.

Hi @ramakrishna

I had a typo in my first message.  I said "You can build this list easily" when it should be "You can't build this list easily". The best you can do is to check what repositories he has access using the workaround provided by evzijst on [BCLOUD-8542] Determine whether authenticated user has "write" access to a repository?.

GET /2.0/repositories/{username}?role=contributor

For more details on this API you can check Bitbucket API - Repositories/{username}.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,849 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you