In Bitbucket Cloud, how do workspaces, projects and repositories relate, and where can access to a repository be granted?
answer
- three nested containers
- the URL skips one of them
- project grants reach old and new repos
- Admin, Create, Write, Read
- group edits reach future repos only
basics
~20 sA Bitbucket Cloud workspace owns the repositories, members and user groups; projects group repositories inside it. Access is granted at three levels: workspace user groups, project permissions covering every repository in the project, and permissions on one repository.
solid answer
~40 sThe **workspace** is the top container: it owns the repositories, the members and the user groups, and its ID is the first part of every repository URL (`bitbucket.org/<workspace ID>/<repo name>`). A **project** groups repositories inside one workspace; each repository has a single Project field, and the project is not part of the URL. Access stacks at three levels: a workspace **user group** carries default repository access plus workspace permissions (Create repositories, Administer workspace); **project permissions** (Admin, Create, Write, Read) apply to every repository in the project, old and new; and **repository permissions** (Admin, Write, Read) cover one repository. A repository admin sees the project's grants as inherited and cannot edit them there, which is what makes the project the right place to manage forty repositories at once.
go deeper
Recall the three containers and which one appears in the URL. Name the four project permission levels and what Write lets you do on a repository.
Explain how workspace groups, project permissions and repository permissions stack, and why removing one grant does not remove access that came from another level.
Show how you would audit access after moving many repositories into a project: leftover individual grants, transferred repositories with empty access lists, and group defaults that only reach new repositories.
Argue where policy should live: projects as the unit of ownership and permission, with repository-level grants kept as rare, reviewed exceptions.
## The three containers Bitbucket Cloud organises hosted Git repositories in three nested levels. Knowing which level owns what is the first thing to get straight before a migration, because every permission and most settings are attached to one of them. | Container | What it holds | Where it shows up | |---|---|---| | **Workspace** | Repositories, members, user groups, the plan | The first segment of every repository URL: `bitbucket.org/<workspace ID>/<repo name>` | | **Project** | A set of repositories inside one workspace, plus project-level settings | The repository breadcrumb and the Projects list; **not** the URL | | **Repository** | One Git repository, its pull requests and its own settings | The second segment of the URL | A repository is created in a project and has a single **Project** field in its settings; changing that field moves it to another project of the same workspace without changing its URL. One limit worth remembering: a public repository cannot be moved into a private project. Changing the **workspace ID** (the slug) is different: it changes the URL of every repository in the workspace, so every clone needs its remote updated. Changing the workspace's display name does not. ## Where access is granted Access to a repository can come from three places, and a user's effective access is whatever those grants add up to. | Level | Permission levels | Reaches | |---|---|---| | **Workspace user group** | Repository access (Admin, Write, Read, None) plus workspace permissions (**Create repositories**, **Administer workspace**) | Repositories, depending on when and how it was set | | **Project permissions** | **Admin**, **Create**, **Write**, **Read** — each includes the ones below it | Every repository in the project, existing and future | | **Repository permissions** | **Admin**, **Write**, **Read** | That one repository | - **Create** is the project-only level: it lets a user create repositories in the project and gives write access to all of them. - **Write** on a repository means pushing changes directly; **Read** means viewing, cloning and forking, not pushing. - In a workspace administered inside Bitbucket, an **Administrators** group and a **Developers** group are created with the workspace. ## How the levels interact The levels do not override each other; they stack, and removing one grant leaves the others in place. - **Project grants are inherited and locked.** A repository admin sees the project's permissions on the repository but cannot edit them there. - **Removing a user from a project removes only the project grant.** Anything given to them directly on a repository, or through a workspace group, still applies. - **Editing a group's default repository access affects future repositories only.** Existing repositories keep their level until you change them from the group's Repositories tab or in bulk. - **Transferring a repository in from another workspace drops its access list.** It does not inherit the destination's default access groups either; you grant access again after the transfer. - **The Free plan counts users.** If more than five users have access to private repositories, access becomes read-only until users are removed or the plan is upgraded. ## Workspaces administered from Atlassian Administration As of October 2026, Atlassian's documentation says new workspaces are created and administered from Atlassian Administration, the organisation-wide admin console, and can no longer be created inside Bitbucket. In those workspaces, granting someone access to the workspace and assigning the workspace admin role happen in Atlassian Administration, while **project and repository permissions are still managed in Bitbucket**. The built-in issue tracker and wikis are not available there, which is one reason teams on these workspaces lean on Jira for issues. ## What this means for a team moving in 1. Create one project per team or product line and grant the team's group **Write** (or **Create** for leads) on the project, not on each repository. 2. Move or transfer the repositories into that project, then re-check access on anything transferred from another workspace. 3. Audit individual repository grants afterwards: they survive any project-level clean-up and are the usual source of "why can they still push?". 4. Keep workspace **Administer workspace** rights to a small group, because it reaches the settings of every repository. The short version for an interview: workspace for identity and URLs, project for policy across many repositories, repository for exceptions.
- A developer was removed from a Bitbucket Cloud project but can still push to one of its repositories. Why?Removing a user or group from a project removes only the project grant. A permission given to them directly on that repository, or through a workspace user group's repository access, stays in place. Check the repository's own permissions page and the groups the user belongs to, and remove the individual grant there.
- What breaks when a Bitbucket Cloud workspace ID is changed?The workspace ID is part of every repository URL, so changing it changes the URLs of all the workspace's repositories, snippets and static websites. Every clone then has to update its remote or re-clone. Changing the workspace's display name leaves the URLs alone.
A workspace is an office building, projects are its floors and repositories are rooms. A floor key card opens every room on that floor, including rooms built later; a room key handed to someone directly is separate, so taking away their floor card does not take back that room key.
- Projects are part of the repository URL, so moving a repository breaks clones.
- A repository admin can lower a project-level permission on their own repository.
- Removing someone from the project revokes all of their access to its repositories.
- Editing a group's default repository access updates every existing repository at once.
- Repositories have a Create permission level, just like projects.