> ## Documentation Index
> Fetch the complete documentation index at: https://specterops-fetch-json-component.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Okta_HasRoleAssignment

> Relationship between a principal and a role assignment

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

## Edge Schema

* Source: [Okta\_User](/opengraph/extensions/oktahound/reference/nodes/okta_user), [Okta\_Group](/opengraph/extensions/oktahound/reference/nodes/okta_group), [Okta\_Application](/opengraph/extensions/oktahound/reference/nodes/okta_application)
* Destination: [Okta\_RoleAssignment](/opengraph/extensions/oktahound/reference/nodes/okta_roleassignment)
* Traversable: ❌

## General Information

The `Okta_HasRoleAssignment` edges connect users, groups, and applications to their respective `Okta_RoleAssignment` nodes.
The `Okta_ScopedTo` edges connect the `Okta_RoleAssignment` nodes to the resources they are scoped to, such as the organization or specific groups or applications.

```mermaid theme={null}
graph TB
    ra1("Okta_RoleAssignment Help Desk Administrator")
    ra2("Okta_RoleAssignment Super Administrator")
    r1("Okta_Role Help Desk Administrator")
    r2("Okta_Role Super Administrator")
    u1("Okta_User john\@contoso.com")
    u2("Okta_User steve\@contoso.com")
    u3("Okta_User alice\@contoso.com")
    g1("Okta_Group Seattle Help Desk")
    g2("Okta_Group Seattle Office")
    org("Okta_Organization contoso.okta.com")

    u1 -- Okta_MemberOf --> g1
    g1 -. Okta_HasRoleAssignment .-> ra1
    g1 -. Okta_HasRole .-> r1
    g1 -- Okta_HelpDeskAdmin --> u3
    u3 -- Okta_MemberOf --> g2
    ra1 -. Okta_ScopedTo .-> g2
    u2 -. Okta_HasRoleAssignment .-> ra2
    ra2 -. Okta_ScopedTo .-> org
    u2 -- Okta_SuperAdmin --> org
    u2 -. Okta_HasRole .-> r2
```
