> ## Documentation Index
> Fetch the complete documentation index at: https://specterops-bed-6715-managed-id-auth-method.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure a Personal Access Token

> Create a Fine-grained Personal Access Token for GitHub data collection.

<img noZoom src="https://mintcdn.com/specterops-bed-6715-managed-id-auth-method/32bGxo1_JbXAaHjs/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max&auto=format&n=32bGxo1_JbXAaHjs&q=85&s=bb5b2bc8331220b968a23923bc289c26" alt="Applies to BloodHound Enterprise and CE" width="482" height="45" data-path="assets/enterprise-AND-community-edition-pill-tag.svg" />

This page covers creating a Fine-grained Personal Access Token (PAT) for GitHub. PATs have a rate limit of **5,000 API requests per hour**.

<Tip>For higher rate limits, see [Configure a GitHub App Installation](/openhound/collectors/github/configure-app).</Tip>

## Create a Fine-grained Personal Access Token

<Steps>
  <Step title="Navigate to Personal Access Tokens">
    Navigate to your GitHub **Profile** > **Settings**.

    <Frame>
      <img src="https://mintcdn.com/specterops-bed-6715-managed-id-auth-method/wg3wMC6d-szed4C5/images/extensions/github/pat/1_proile_settings.png?fit=max&auto=format&n=wg3wMC6d-szed4C5&q=85&s=11a4eeece90a84c8fa3cdf0dd003fefa" alt="GitHub profile settings menu" width="344" height="751" data-path="images/extensions/github/pat/1_proile_settings.png" />
    </Frame>
  </Step>

  <Step title="Open Developer Settings">
    Go to **Developer settings** (bottom left).

    <Frame>
      <img src="https://mintcdn.com/specterops-bed-6715-managed-id-auth-method/wg3wMC6d-szed4C5/images/extensions/github/pat/2_developer_settings.png?fit=max&auto=format&n=wg3wMC6d-szed4C5&q=85&s=149bc1451d4743e6b77453cb3b6add46" alt="Developer settings in GitHub profile" width="1300" height="1163" data-path="images/extensions/github/pat/2_developer_settings.png" />
    </Frame>
  </Step>

  <Step title="Go to Fine-grained Tokens">
    Navigate to **Personal access tokens** > **Fine-grained tokens**.

    <Frame>
      <img src="https://mintcdn.com/specterops-bed-6715-managed-id-auth-method/wg3wMC6d-szed4C5/images/extensions/github/pat/3_fine-grained_tokens.png?fit=max&auto=format&n=wg3wMC6d-szed4C5&q=85&s=7a230af93105f793d3b86e1fa32b32c9" alt="Fine-grained tokens in Developer settings" width="1135" height="196" data-path="images/extensions/github/pat/3_fine-grained_tokens.png" />
    </Frame>
  </Step>

  <Step title="Generate a new token">
    Click **Generate new token**.

    <Frame>
      <img src="https://mintcdn.com/specterops-bed-6715-managed-id-auth-method/wg3wMC6d-szed4C5/images/extensions/github/pat/4_generate_token.png?fit=max&auto=format&n=wg3wMC6d-szed4C5&q=85&s=89d8e611b0486554ab0dd429b13dee83" alt="Generate new fine-grained token page" width="1135" height="278" data-path="images/extensions/github/pat/4_generate_token.png" />
    </Frame>
  </Step>

  <Step title="Set resource owner">
    Set the **Resource owner** to your target organization.
  </Step>

  <Step title="Configure the access scope">
    Under **Repository access**, select **All repositories**.

    <Frame>
      <img src="https://mintcdn.com/specterops-bed-6715-managed-id-auth-method/wg3wMC6d-szed4C5/images/extensions/github/pat/5_all_repositories.png?fit=max&auto=format&n=wg3wMC6d-szed4C5&q=85&s=38f0d3f686bf29afca160b3a9824990b" alt="Select All repositories for token access" width="1135" height="763" data-path="images/extensions/github/pat/5_all_repositories.png" />
    </Frame>
  </Step>

  <Step title="Configure the repository and org permissions">
    Configure the required [repository and organization permissions](/openhound/collectors/github/collect-data#required-permissions) to **Read-only**.

    <Frame>
      <img src="https://mintcdn.com/specterops-bed-6715-managed-id-auth-method/wg3wMC6d-szed4C5/images/extensions/github/pat/6_permissions.png?fit=max&auto=format&n=wg3wMC6d-szed4C5&q=85&s=b5e888db3d1d035de5f2e1b374737f0b" alt="Token permissions configuration" width="803" height="325" data-path="images/extensions/github/pat/6_permissions.png" />
    </Frame>
  </Step>

  <Step title="Generate the token">
    <Warning>You must save the token value (preferably in a password manager) at this point. You will not be able to recover it later.</Warning>

    Click **Generate token** and copy the token value.

    <Frame>
      <img src="https://mintcdn.com/specterops-bed-6715-managed-id-auth-method/wg3wMC6d-szed4C5/images/extensions/github/pat/7_save_pat.png?fit=max&auto=format&n=wg3wMC6d-szed4C5&q=85&s=9a881273ce1f1911411e2bb6ecd98351" alt="Copy the generated token" width="803" height="243" data-path="images/extensions/github/pat/7_save_pat.png" />
    </Frame>
  </Step>
</Steps>

<Tip>For organizations with SAML SSO enabled, you must [authorize the PAT for SSO access](https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on) after creating it.</Tip>

## Next Steps

After creating a token, proceed to [configure the collector](/openhound/collectors/github/collect-data) to start collection.
