Set up a Bitbucket connector
Capabilities
Sync user identities from Bitbucket to ConductorOne
Resources supported:
- Workspaces
- Groups
- Projects
- Repositories
Provisioning supported:
- Groups
Add a new Bitbucket connector
This task requires either the Connector Administrator or Super Administrator role in ConductorOne.
In ConductorOne, click Connectors > Add connector.
Search for Bitbucket and click Add.
Choose how to set up the new Bitbucket connector:
Add the connector to a currently unmanaged app (select from the list of apps that were discovered in your identity, SSO, or federation provider that aren’t yet managed with ConductorOne)
Add the connector to a managed app (select from the list of existing managed apps)
Create a new managed app
Do you SSO into Bitbucket using your identity, SSO, or federation provider? If so, make sure to add the connector to the unmanaged Bitbucket app that was created automatically when you integrated your provider with ConductorOne, rather than creating a new managed app.
Set the owner for this connector. You can manage the connector yourself, or choose someone else from the list of ConductorOne users. Setting multiple owners is allowed.
A Bitbucket connector owner must have the following permissions:
- Connector Administrator or Super Administrator role in ConductorOne
- Permission to create an OAuth consumer for the Bitbucket Cloud workspace you’re integrating
- Click Next.
Next steps
If you are the connector owner, proceed to Configure your Bitbucket connector for instructions on integrating Bitbucket with ConductorOne.
If someone else is the connector owner, ConductorOne will notify them by email that their help is needed to complete the setup process.
Configure your Bitbucket connector
A user with the Connector Administrator or Super Administrator role in ConductorOne and the permission to create an app password in Bitbucket must perform this task.
Step 1: Create an app password
In Bitbucket, click Settings (gear icon) in the top right corner of the screen and then click Personal settings > Personal Bitbucket settings.
In the menu on the left side of the page, click App passwords.
Click Create app password.
Give the password a name, such as “ConductorOne”.
In the Permissions section of the page, select the relevant set of permissions:
To run access reviews on your Bitbucket users:
- Account: Read
- Workspace membership: Read
- Projects: Read, Admin
- Repositories: Admin
To provision Bitbucket group membership via ConductorOne and run access reviews:
- Account: Read, Write
- Workspace membership: Read
- Projects: Read, Admin
- Repositories: Admin
Click Create.
Your new password is shown. Carefully save the password. We’ll use it in Step 2.
Step 2: Add your Bitbucket credentials to ConductorOne
In ConductorOne, navigate to the Bitbucket connector by either:
Clicking the Set up connector link in the email you received about configuring the connector.
Navigate to Connectors > Bitbucket (if there is more than one Bitbucket listed, click the one with your name listed as owner and the status Not connected).
Find the Settings area of the page and click Edit.
Enter your Bitbucket username into the Username field.
Enter the password you created in Step 1 into the App password field.
Optional. Enter the names of the specific Bitbucket workspaces you want to integrate. If you have only one workspace, or if you want to integrate all your workspaces, you do not need to enter anything here.
Click Save.
The connector’s label changes to Syncing, followed by Connected. You can view the logs to ensure that information is syncing.
That’s it! Your Bitbucket connector is now pulling access data into ConductorOne.
Configure the Bitbucket integration using Terraform
As an alternative to the integration process described above, you can use Terraform to configure the integration between Bitbucket and ConductorOne.
See the ConductorOne Bitbucket integration resource page in the ConductorOne Terraform registry for example usage and the full list of required and optional parameters.