# Bitbucket

Connect Bitbucket Cloud to create workspaces from your Bitbucket projects and invite the people who commit to them.

The Bitbucket integration brings your Bitbucket Cloud projects into LeoPrevent: projects become workspaces with their repositories, and new repositories join the right workspace. Nothing is written to Bitbucket. Code is read only for [repository context scans](https://help.leotrace.io/repository-context-scans/), on the repositories you turn them on for.

Available to Admins and Owners.

## Connect Bitbucket

1. Open **Integrations** and select **Bitbucket**.
2. Select **Continue to Bitbucket**.
3. Sign in to Bitbucket Cloud and allow LeoPrevent to read your account, workspaces, projects and repositories.

The drawer then shows **Connected**, the Bitbucket account, what it can see, and who connected it and when.

## Import projects

Open **Workspaces**, select **New workspace**, then **Import from GitHub, GitLab or Bitbucket**. See [Create and import workspaces](https://help.leotrace.io/create-and-import-workspaces/).

To invite the people who committed recently, use **Invite people** in **User management**. See [Invite people](https://help.leotrace.io/invite-people/).

## What LeoPrevent reads

| Data | When |
|---|---|
| Workspace, project and repository names | Always. |
| Recent commit authors | When you invite people from Bitbucket. |
| Setup and configuration files | Only for repositories you turn context scans on for. |

## Disconnect

Select **Disconnect** in the Bitbucket drawer. Workspaces stop following Bitbucket projects, and context scans of Bitbucket repositories stop. Reviews from the plugin carry on. To remove access completely, also revoke LeoPrevent in your Bitbucket settings.

Source: https://help.leotrace.io/bitbucket/ (updated 2026-11-19)
