# Bitbucket Data Center Configuration

## Create an Access Token

### Required Token Permissions

| Feature | Bitbucket Data Center | Bitbucket Cloud |
| --- | --- | --- |
| [Automated Commit Feedback](https://help.sonatype.com/en/automated-commit-feedback.html "Automated Commit Feedback") | **Read** under **Repositories** | **Read** under **Repositories** |
| [Automated Pull Requests](https://help.sonatype.com/en/automated-pull-requests.html "Automated remediation") | **Write** under **Repositories** | **Write** under **Pull Requests** |
| [Pull Request Commenting](https://help.sonatype.com/en/pull-request-commenting.html "Pull Request Commenting") | **Write** under **Repositories** | **Write** under **Pull Requests** |
| [Pull Request Line Commenting](https://help.sonatype.com/en/pull-request-commenting.html "Pull Request Commenting") | **Write** under **Repositories** | **Write** under **Pull Requests** |
| [Bitbucket Code Insights](https://help.sonatype.com/en/bitbucket-code-insights.html "Bitbucket Code Insights") | **Write** under **Repositories** | **Write** under **Repositories** |

#### Bitbucket Data Center

1. Log into Bitbucket Data Center.

2. Click your profile image and select **Manage Account**.

3. Select **Personal access tokens**.

4. Click the **Create a token** button.

5. Choose a name for the token.

6. Click **Create**.

7. Save the personal access. You will not be able to view it again.

**Note**

Bitbucket Data Center requires your username for the account.

|     |
| --- |
|  |

See [this article for more information on Bitbucket Data Center Personal Access Tokens](https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html).

## Protecting the Target Branch in Bitbucket Data Center

You can prevent users from merging Pull Requests with failing IQ Policy Evaluations with a **Merge Check.** IQ Policy Evaluations must be set to Fail at the Source Stage.

|     |
| --- |
|  |

Click **Enabled** from the dropdown next to **Minimum successful builds**. Set the desired minimum number of successful builds.

|     |
| --- |
|  |

[See this page for more information.](https://confluence.atlassian.com/bitbucketserver/checks-for-merging-pull-requests-776640039.html)

## Search results

No results found.
