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?
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:
The full documentation is available on the Bitbucket Server REST API page.
Cheers,
Caterina - Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the replies.
I would be great if Bitbucket would implement support for setting "Default Access" to a value different from "No access".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Yogesh Mude,
The link refers to Bitbucket Cloud (bitbucket.org) and not to Bitbucket Server.
Cheers,
Caterina - Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.