Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Default read access to all Bitbucket projects and repos

Hi.

 

We're setting up an on-premise Bitbucket server, and would like all projects and repos to have read access enabled by default. Are there any global settings that can enable these defaults?

 

4 answers

1 accepted

1 vote
Answer accepted

Hi @nkeho,

It is currently not possible to set the "Default Access" to a value different from "No access" or to enable the "Public access" feature by default.

 

If it's an option for you to automate the project creation, you could set one of these option (depending on your use case) while creating the project.

 

Here are the related REST API endpoint.

Set the "Public Access" while creating the project

Note: this can only be done while creating the project and is achieved by adding the "public": true option in the request to the following endpoint:

POST /rest/api/1.0/projects

Example representation:

{
"key": "PRJ",
"name": "My Cool Project",
"description": "The description for my cool project.",
"public": true
}

 

Set the "Default Access" to the required value

POST /rest/api/1.0/projects/{projectKey}/permissions/{permission}/all

 

The allowed values for {permission} are:

  • PROJECT_READ
  • PROJECT_WRITE
  • PROJECT_ADMIN

 

 

The full documentation is available on the Bitbucket Server REST API page.

 

Cheers,

Caterina - Atlassian

HI @nkeho 

There is no default setting for all the Project and repository but you need to manage this.

As it depends on the User group/role like Developer, Administrator.

Here is the detailed documentation for this please have a look at it.

Hi @Yogesh Mude,

The link refers to Bitbucket Cloud (bitbucket.org) and not to Bitbucket Server.

 

Cheers,

Caterina - Atlassian

Thanks for the replies.

I would be great if Bitbucket would implement support for setting "Default Access" to a value different from "No access".

Hi @nkeho,

Can you tell us a little more about this?

Some questions that you could answer are: How would this be helping you / enabling you to do? What is currently not possible with the current defaults?

 

Cheers,

Caterina - Atlassian

Hi.

 

In our case, we're setting up an on-premise Bitbucket server, which different departments within our organization will be using for their projects.

What we'd like to do is to make it so that all code in our Bitbucket server by default are readable to everyone else (i.e. to all logged in users). This way we'll make it easier for our developers to discover and re-use code across projects. On other words, if the different teams/projects don't know about other teams' code, we're more likely to spend time writing similar type of code instead of re-using or cooperating on writing the code.

We'd like everyone to be able to browse through other departments/teams/projects code, and potentially finding code to contribute to and so forth.

My understanding is that the default settings in Bitbucket does not allow for all logged in users do browse through everyone else' code, unless all the users are give admin type of privileges. 

Hope this makes things more clear.

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

281 views 2 10
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