> For the complete documentation index, see [llms.txt](https://docs.hivel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivel.ai/integrations/version-control/github/github-using-oauth/how-to-re-authorize-re-initiate-github-integration-with-repository-level-access.md).

# How to re-authorize / re-initiate GitHub integration with repository level access?

Hivel currently only supports GitHub accounts that are associated with an organization. Often, this step is missed when setting up a GitHub account, and you may have run into an error when creating an account on Hivel. When you encounter this error during the initial process, we recommend you follow the below steps to create an organization and link your current users to the organization.

&#x20;

To re-initiate/reauthorize GitHub integration with Hivel, follow these steps:

1. Log in to your GitHub account.
2. Revoke the Hivel app access from your GitHub account by going to **Settings** > **Account Settings** > **Applications** > **Authorized OAuth Apps** > **Hivel**.&#x20;

<figure><img src="/files/IUyPeAiUgZdnEmZ89fVQ" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/aBXUqVTqsrCM1wcGX03e" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/GAfVfqRCqhOkULwO4WlV" alt=""><figcaption></figcaption></figure>

3. Then click "**Revoke"**.

<figure><img src="/files/brYJvSImWcxBsuBDsoo6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdO0aQ1F_fo-mKURqlUU_hC6mYFRamiPBEEjh1M-84GVDUza2ZEyW5KF-JNp6VYEr3VcB7AcNl8MANHvHG6VKPqaU7ccqGpxxzgdsoDh9NNpa4Uuhsz9Mli6-wxbMZslfwTVgw5PXsaDudUVyQaAfCLzuA?key=7e-FYm3-NHwQUjNXOPEkIw" alt="" width="563"><figcaption></figcaption></figure>

4. Return to your Hivel account. Go to **Settings > Integrations**. You will see a "**Reauthorize**" button on the GitHub card. (If you're not able to see it, please reach out to [<mark style="color:purple;">support@hivel.ai</mark>](mailto:support@hivel.ai))

<figure><img src="/files/GcQFV9x4b5nnG873Fahr" alt=""><figcaption></figcaption></figure>

#### Integration Options

There are two integration options to choose from:&#x20;

* **Account-Wide Access** and&#x20;
* **Repository-Level Access**.&#x20;

Repository-Level Access, is revealed by clicking **"Show Advanced Option."**

**Repository-Level Access** (under "Show Advanced Option")

* Need to be a GitHub Admin
* Connect only the repositories you choose

Check **"Please verify you are an Admin to proceed"** to enable the **Integrate Github** button.

<figure><img src="/files/GBnDtR3x5qDMgRXQJbWo" alt=""><figcaption></figcaption></figure>

You will be redirected to the GitHub Authorization page, Authorize your organization's access by clicking on "**Grant**" against your organization.

<figure><img src="/files/c7CItM9YodhMjX0iZfVh" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To include GitHub Copilot usage data as part of the token integration, check the **"Include GitHub Copilot usage data"** in this last step.
{% endhint %}
