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

> The role a user has within a team (e.g., maintainer, member)

<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 role within a GitHub team. Each team has two built-in roles: Member and Maintainer. Maintainers can add and remove team members. Team roles connect users to teams and transitively to any repository roles assigned to the team.

## 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\_HasRole](/opengraph/extensions/github/edges/gh_hasrole)   | [GH\_User](/opengraph/extensions/github/nodes/gh_user), [GH\_Team](/opengraph/extensions/github/nodes/gh_team)                                                                                                   | ✅           |

### Outbound Edges

| Edge Type                                                        | Destination Node Types                                 | Traversable |
| ---------------------------------------------------------------- | ------------------------------------------------------ | ----------- |
| [GH\_AddMember](/opengraph/extensions/github/edges/gh_addmember) | [GH\_Team](/opengraph/extensions/github/nodes/gh_team) | ✅           |
| [GH\_MemberOf](/opengraph/extensions/github/edges/gh_memberof)   | [GH\_Team](/opengraph/extensions/github/nodes/gh_team) | ✅           |

## Properties

| Property Name     | Data Type | Description                                                                          |
| ----------------- | --------- | ------------------------------------------------------------------------------------ |
| objectid          | string    | A deterministic ID derived from the team ID and role name (e.g., `{teamId}_member`). |
| name              | string    | The fully qualified role name (e.g., `TeamSlug\member`).                             |
| id                | string    | Same as objectid.                                                                    |
| short\_name       | string    | The short role name: `member` or `maintainer`.                                       |
| type              | string    | Always `default` for team roles.                                                     |
| environment\_name | string    | The name of the environment (GitHub organization).                                   |
| environmentid     | string    | The node\_id of the environment (GitHub organization).                               |

## Diagram

```mermaid theme={null}
flowchart TD
    GH_TeamRole[fa:fa-user-tie GH_TeamRole]
    GH_User[fa:fa-user GH_User]
    GH_Team[fa:fa-user-group GH_Team]


    GH_User -->|GH_HasRole| GH_TeamRole
    GH_TeamRole -->|GH_MemberOf| GH_Team
    GH_TeamRole -->|GH_AddMember| GH_Team
```
