> ## 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_PersonalAccessTokenRequest

> A pending request from an organization member to access organization resources with a fine-grained personal access token

<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" />

Represents a pending request from an organization member to access organization resources with a fine-grained personal access token. PAT requests are linked to their owning user and the organization. The requested permissions are captured as a JSON string in the properties.

## 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>

### Inbound Edges

| Edge Type                                                                                                | Source Node Types                                                                                                                                                                                                | Traversable |
| -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [GH\_Contains](/opengraph/extensions/github/edges/gh_contains)                                           | [GH\_Organization](/opengraph/extensions/github/nodes/gh_organization), [GH\_Repository](/opengraph/extensions/github/nodes/gh_repository), [GH\_Environment](/opengraph/extensions/github/nodes/gh_environment) | ❌           |
| [GH\_HasPersonalAccessTokenRequest](/opengraph/extensions/github/edges/gh_haspersonalaccesstokenrequest) | [GH\_User](/opengraph/extensions/github/nodes/gh_user)                                                                                                                                                           | ❌           |

### Outbound Edges

No outbound edges are defined by the GitHub extension for this node.

## Properties

| Property Name         | Data Type | Description                                                                                   |
| --------------------- | --------- | --------------------------------------------------------------------------------------------- |
| objectid              | string    | Deterministic Base64-encoded identifier, used as the unique graph identifier.                 |
| id                    | string    | The deterministic identifier (same as objectid).                                              |
| name                  | string    | The user-assigned display name of the token.                                                  |
| environment\_name     | string    | The name of the environment (GitHub organization) where access is being requested.            |
| environmentid         | string    | The node\_id of the environment (GitHub organization).                                        |
| owner\_login          | string    | The login handle of the user who submitted the request.                                       |
| owner\_id             | integer   | The numeric GitHub ID of the requester.                                                       |
| owner\_node\_id       | string    | The GraphQL node ID of the requester.                                                         |
| token\_id             | integer   | Unique identifier of the user's token, found in audit logs.                                   |
| token\_name           | string    | The user-assigned display name of the token.                                                  |
| token\_expired        | boolean   | Whether the token has expired.                                                                |
| token\_expires\_at    | string    | ISO 8601 timestamp of when the token expires.                                                 |
| token\_last\_used\_at | string    | ISO 8601 timestamp of when the token was last used.                                           |
| repository\_selection | string    | Whether the request targets `all`, `subset`, or `none` of the organization's repositories.    |
| reason                | string    | The rationale provided by the requester for the access request.                               |
| created\_at           | string    | ISO 8601 timestamp of when the request was submitted.                                         |
| permissions           | string    | JSON string of the permissions being requested (e.g., `{"organization":{},"repository":{}}`). |

## Diagram

```mermaid theme={null}
flowchart TD
    GH_PersonalAccessTokenRequest[fa:fa-key GH_PersonalAccessTokenRequest]
    GH_User[fa:fa-user GH_User]
    GH_Organization[fa:fa-building GH_Organization]


    GH_User -.->|GH_HasPersonalAccessTokenRequest| GH_PersonalAccessTokenRequest
    GH_Organization -.->|GH_Contains| GH_PersonalAccessTokenRequest
```
