> ## Documentation Index
> Fetch the complete documentation index at: https://bloodhound.specterops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# GH_ClassicPersonalAccessToken

> A classic personal access token found in the enterprise credential inventory

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

## General Information

A classic personal access token found in the enterprise credential inventory.

## Properties

| Property | Type | Description |
| - | - | - |
| `name` | `string` | The node name used for matching and display. |
| `displayname` | `string` | The human-readable display name. |
| `environmentid` | `string` | The identifier of the GitHub environment where this node was collected. |
| `last_seen` | `datetime` | The timestamp when this node was last observed during collection. |
| `node_id` | `string` | The stable identifier used as the OpenGraph node ID; this is the native GitHub node ID where available. |
| `credential_id` | `integer` | GitHub's ID for this classic personal access token. |
| `owner_id` | `integer` | GitHub's numeric ID for the token owner. |
| `owner_login` | `string` | Login of the token owner. |
| `scopes` | `list[string]` | OAuth scopes granted to the token. |
| `credential_state` | `string` | Whether GitHub reports the credential as active, expired, revoked, or deleted. |
| `expiry_status` | `string` | Whether expiration is scheduled, never, or unknown. |
| `enterprise_authorized` | `boolean` | Whether the credential is authorized directly for the enterprise. |
| `authorization_count` | `integer` | Total organization authorizations plus enterprise authorization. |
| `inventory_as_of` | `string` | Timestamp of the export snapshot used to observe the token. |
| `created_at` | `datetime` | Token creation time reported by GitHub. |
| `last_used_at` | `datetime` | Last use time reported by GitHub. |
| `expires_at` | `datetime` | Token expiration time reported by GitHub. |
| `authorized_organizations` | `list[string]` | Organizations with a reported credential authorization. |
| `environment_name` | `string` | Enterprise environment name. |
| `enterprise_name` | `string` | Enterprise from which the inventory was exported. |

## Diagram

```mermaid theme={null}
graph LR
    n0["GH_ClassicPersonalAccessToken"]
    n1["GH_Organization"]
    n2["GH_Enterprise"]
    n3["GH_User"]
    n0 -.->|GH_AuthorizedForOrganization| n1
    n2 -.->|GH_Contains| n0
    n3 -.->|GH_HasPersonalAccessToken| n0
```

## Edges

<Note>
  The tables below list edges defined by the GitHub extension only. Additional edges to or from this node may be created by other extensions.
</Note>

```mermaid theme={null}
flowchart LR

    GH_ClassicPersonalAccessToken["GH_ClassicPersonalAccessToken"]
    GH_Enterprise["GH_Enterprise"]
    GH_Organization["GH_Organization"]
    GH_User["GH_User"]
    GH_ClassicPersonalAccessToken -- GH_AuthorizedForOrganization --> GH_Organization
    GH_Enterprise -- GH_Contains --> GH_ClassicPersonalAccessToken
    GH_User -- GH_HasPersonalAccessToken --> GH_ClassicPersonalAccessToken
```

### Inbound Edges

| Edge Type | Source Node Types | Traversable |
| - | - | - |
| [GH\_Contains](/opengraph/extensions/github/edges/gh_contains) | [GH\_Enterprise](/opengraph/extensions/github/nodes/gh_enterprise) | ❌ |
| [GH\_HasPersonalAccessToken](/opengraph/extensions/github/edges/gh_haspersonalaccesstoken) | [GH\_User](/opengraph/extensions/github/nodes/gh_user) | ❌ |

### Outbound Edges

| Edge Type | Destination Node Types | Traversable |
| - | - | - |
| [GH\_AuthorizedForOrganization](/opengraph/extensions/github/edges/gh_authorizedfororganization) | [GH\_Organization](/opengraph/extensions/github/nodes/gh_organization) | ❌ |

## Properties

| Property | Type | Description |
| - | - | - |
| `name` | `str` | - |
| `displayname` | `str` | - |
| `environmentid` | `str` | - |
| `last_seen` | `datetime` | - |
| `node_id` | `str` | - |
| `credential_id` | `int \| None` | GitHub's ID for this classic personal access token. |
| `owner_id` | `int \| None` | GitHub's numeric ID for the token owner. |
| `owner_login` | `str \| None` | Login of the token owner. |
| `scopes` | `list[str] \| None` | OAuth scopes granted to the token. |
| `credential_state` | `str \| None` | Whether GitHub reports the credential as active, expired, revoked, or deleted. |
| `expiry_status` | `str \| None` | Whether expiration is scheduled, never, or unknown. |
| `enterprise_authorized` | `bool \| None` | Whether the credential is authorized directly for the enterprise. |
| `authorization_count` | `int \| None` | Total organization authorizations plus enterprise authorization. |
| `inventory_as_of` | `str \| None` | Timestamp of the export snapshot used to observe the token. |
| `created_at` | `datetime \| None` | Token creation time reported by GitHub. |
| `last_used_at` | `datetime \| None` | Last use time reported by GitHub. |
| `expires_at` | `datetime \| None` | Token expiration time reported by GitHub. |
| `authorized_organizations` | `list[str] \| None` | Organizations with a reported credential authorization. |
| `environment_name` | `str \| None` | Enterprise environment name. |
| `enterprise_name` | `str \| None` | Enterprise from which the inventory was exported. |
