Personal Access Token Permissions for GitLab

To securely back up your GitLab projects with Commvault Cloud, you must generate a GitLab Personal Access Token (PAT). This token enables Commvault Cloud to access the required data for backup and recovery.

Note

The GitLab account used to generate the token must have the Owner role on the target projects or at the group level for backups to function properly.

Generate a GitLab PAT

Procedure

  1. Log in to your GitLab account.

  2. Click your Profile Icon in the top-right corner and select Edit profile.

  3. In the left sidebar, navigate to Access Tokens.

  4. Provide a token name and set an expiration date.

  5. Select the required scopes listed below.

    • api
    • read_api
    • read_repository
    • write_repository

    All the above permissions are required at the group level or at the individual project level for the projects you want to protect.

  6. Click Create personal access token.

  7. Copy the token and store it securely—GitLab will not show it again.

Need Help? Watch the Video

A guided walkthrough video is available to help you:

  • Navigate the GitLab UI to create a PAT

  • Select the correct scopes

  • Avoid common mistakes during configuration

Loading...