Capabilities
Gather Bitbucket credentials
Configuring the connector requires you to pass in credentials generated in Bitbucket. Gather these credentials before you move on.Create an API token
1
In Bitbucket, navigate to your account’s API Tokens page.
2
Click Create API token with scopes.
3
Give the API token a name, such as “C1”, and set its expiration date.
4
Select Bitbucket from the list of apps.
5
On the Select Bitbucket scopes page, select the following:Read scopes:
read:workspace:bitbucket- Required to read workspace details and workspace membersread:user:bitbucket- Required to read user informationread:project:bitbucket- Required to read project informationread:repository:bitbucket- Required to read repository information
admin:workspace:bitbucket- Required to read workspace user groups (v1.0 API) and manage group membershipsadmin:project:bitbucket- Required to read and manage project permissions for users and groupsadmin:repository:bitbucket- Required to read and manage repository permissions for users and groups
6
Click Next.
7
Review your new API token’s details and click Create token.
8
Carefully copy and save the API token.
Configure the Bitbucket connector
- Cloud-hosted
- Self-hosted
Follow these instructions to use a built-in, no-code connector hosted by C1.Done. Your Bitbucket connector is now pulling access data into C1.
1
In C1, navigate to Apps > Connectors and click Add connector.
2
Search for Bitbucket and click Add.
3
Choose where to add the connector: Create a new app, or Add to an existing app (then select the app).If you’re creating a new app, choose whether to link it to an application discovered from your identity provider: select Yes and pick the IdP application, or No to continue with just the connector.
4
Set the connector’s Name and, optionally, a Description.
5
Click the pencil icon next to Owners to choose who can configure and manage this connector.
6
Click Add. The connector is created and its configuration page opens.
7
Find the Settings area of the page and click Edit.
8
Enter your Bitbucket username into the Username field.
9
Enter the API token created for this integration into the App password field.
10
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.
11
Click Save.
12
The connector’s label changes to Syncing, followed by Connected. You can view the logs to ensure that information is syncing.