> For the complete documentation index, see [llms.txt](https://helpcenter.xopero.com/xopero-one-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.xopero.com/xopero-one-en/troubleshooting/fixing-insufficient-permissions-errors-for-git-platforms.md).

# Fixing insufficient permissions errors for Git platforms

Learn how to troubleshoot repository and metadata access issues.

**Insufficient permissions errors may occur when the account or access token used to connect a protected Git platform with Xopero ONE does not have the required access rights. Verifying the assigned permissions and updating the account or token configuration can restore access and allow backup and recovery operations to run correctly.**

***

## General information

If a backup or restore task fails due to insufficient permissions, **Xopero ONE** logs the failure directly in the task summary. These notifications follow a structured format that includes an error code and message.

<table data-header-hidden="false" data-header-sticky data-search="false"><thead><tr><th>Error code</th><th>Error message</th><th>Cause</th></tr></thead><tbody><tr><td>DV9022</td><td>Access to repository is forbidden.</td><td>Insufficient permissions to access the repository.</td></tr><tr><td>DV9030</td><td>Metadata download failure.</td><td>Insufficient permissions to download the metadata.</td></tr><tr><td>DW0834</td><td>Your Branch Protection Rules blocked this action. Add your Personal Access Token (PAT) to complete the [process name].</td><td>Insufficient permissions to backup/restore the branch protection rules.</td></tr><tr><td>DW5001</td><td>Repository permissions are insufficient.</td><td>Insufficient permissions to back up the repository.</td></tr><tr><td>DW5083</td><td>Git - GitHub App has insufficient rights to get branch protecting rules. Please provide Personal Access token in additional credentials.</td><td>Insufficient permissions to backup/restore the branch protection rules.</td></tr></tbody></table>

***

## Resolving permission errors

{% hint style="warning" %}
Restoring branch protection rules requires a token configured with write access to the target repository.
{% endhint %}

If you encounter one of the specific errors listed above, follow these steps to adjust your backup or restore plan configuration:

{% stepper %}
{% step %}
Log in to the target **Git** platform, then verify your account permissions and adjust them if needed. Ensure the account used for synchronization with **Xopero ONE** has the required permissions to access the repository causing the error.
{% endstep %}

{% step %}
Generate a new personal access token (PAT) or API token for **Atlassian**.
{% endstep %}

{% step %}
Log in to **Xopero ONE Management Service**. Add the generated PAT or API token to the **Password Manager** (**Settings** > **Password Manager**).

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2F0dePQchC3fK6bEVAWhS7%2Fimage.png?alt=media&amp;token=fc99250c-4289-47af-b38f-4561866de8ce" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Update the access token in the backup or restore plan that generates the error (**Edit plan** > **Advanced settings** > **Additional Git credentials**).
{% endstep %}
{% endstepper %}

***

## Useful links and items

{% embed url="<https://support.atlassian.com/bitbucket-cloud/docs/create-an-api-token>" %}

{% embed url="<https://confluence.atlassian.com/bitbucketserver/http-access-tokens-939515499.html>" %}

{% embed url="<https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/>" %}

{% embed url="<https://docs.github.com/en/enterprise-server@3.4/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token>" %}

{% embed url="<https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens>" %}

{% embed url="<https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-single-sign-on/authorizing-a-personal-access-token-for-use-with-single-sign-on>" %}
