> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/autofix-and-remediation/configure/autofix-for-gitlab-cloud-with-group-access-token.md).

# AutoFix for Gitlab Cloud with Group Access Token

> It is recommended to use a Group Access Token to setup the Gitlab AutoFix integration. If you don't have GitLab Premium or require [signed commits](/autofix-and-remediation/configure/signed-commits.md), then a [Personal Access Token](https://gitlab.com/-/user_settings/personal_access_tokens) (PAT) should be used.

### Choose Authorize via Access Token in Aikido <a href="#go-to-pat-management-page-in-aikido" id="go-to-pat-management-page-in-aikido"></a>

In Aikido, go to the [**AutoFix settings** page](https://app.aikido.dev/issues/fix/settings) and click **Authorize** (on initial setup) or **Manage Personal Access Token** (when a token is already set). Choose **Authorize Via Access Token**.

<figure><img src="https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-7ced1d353fe80189bc657939539d71cbbd07913a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**Next**, follow the instructions below to generate a Group Access Token in Gitlab.

## Generate a "Group Access Token" in Gitlab <a href="#generate-a-group-access-token-in-gitlab" id="generate-a-group-access-token-in-gitlab"></a>

1. Navigate to '**Settings**' > '**Access tokens**', via the navigation of your Group's page
2. You should end up on a page similar to this. You can navigate to this page yourself by opening your group's settings menu and selecting "**Access tokens**"

   ![](https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-c0bc11b4585c29e0ebe1f4fb8ac58ca61705362d%2Fucarecdn-5b98fb9f-55ab-4620-a02e-c191ee53d5a9.png?alt=media)
3. Click on "**Add** **new token**"
4. Enter a name for token, we suggest something like: "**Aikido Autofix**"
5. For the expiration, use custom defined and set it to 1 year from now, or remove it.
6. The token should have at least the role of "**Developer**"
7. Next you need to select the following permissions for the token: **api** and **write\_repository**

   ![](https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-88f4970c1ee133ad4beebbe99060d2791f3bb5cb%2Fucarecdn-06499262-d7c4-4813-b6af-d800c0be6cc9.png?alt=media)
8. Click on "**Create group access token**"
9. Copy the token on the next screen and insert it on the access token management page in Aikido


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/autofix-and-remediation/configure/autofix-for-gitlab-cloud-with-group-access-token.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
