Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Default read access to all Bitbucket projects and repos

nkeho June 22, 2018

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
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 23, 2018

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

0 votes
nkeho June 25, 2018

Thanks for the replies.

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

Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2018

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

nkeho June 26, 2018

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.

0 votes
Yogesh Mude
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.
June 22, 2018

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.

Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 23, 2018

Hi @Yogesh Mude,

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

 

Cheers,

Caterina - Atlassian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events