{"token_count": 1535}

# Identity Governance Core Concepts

Identity Governance is available only with Teleport Enterprise.

This page introduces the building blocks of Teleport Zero-Trust Access and Identity Governance and shows how they fit together with your identity provider.

## Users

A Teleport user is the identity that receives short-lived certificates and interacts with a Teleport cluster (e.g. connects to resources or performs cluster configuration).

Teleport users are usually automatically synced by setting up an integration with your IdP, such as Okta, Microsoft Entra ID, or any SCIM 2.0 provider, and exist in Teleport while the IdP assigns them to Teleport.

The users are assigned permissions in Teleport by adding them to Access Lists which grant them roles and traits.

Learn more in [User Types](https://goteleport.com/docs/ver/19.x/reference/access-controls/user-types.md).

## Roles

A role is a policy document in YAML format that describes a set of permissions within Teleport, such as what resources users with this role can access or what other actions they can perform.

Examples of role permissions include:

- Allow and deny rules for infrastructure access, selected by labels such as `env: prod` or `team: payments`.
- Principals to use on those resources, such as SSH logins, Kubernetes groups, or database users.
- Access Request permissions, such as which roles or resources a user may request access to.
- Options such as maximum session TTL and MFA requirements.

Here is a role that grants SSH access to development servers:

```
kind: role
version: v8
metadata:
  name: dev-ssh
spec:
  allow:
    node_labels:
      env: dev
    logins: ["ubuntu", "{{internal.logins}}", "{{external.ssh_logins}}"]

```

Teleport also ships a set of [preset roles](https://goteleport.com/docs/ver/19.x/reference/access-controls/roles.md#preset-roles) for common use-cases.

Learn more in [Role-Based Access Control](https://goteleport.com/docs/ver/19.x/zero-trust-access/rbac-get-started.md).

## Traits

Traits are key-value attributes attached to a user, such as `ssh_logins: [ubuntu]` or `team: [payments]`.

A user gets their traits from IdP attributes or claims sent by the SSO provider at login. Access Lists can also grant additional traits to their members.

Roles reference user traits with template expressions such as `{{external.ssh_logins}}` which lets one role serve many teams.

## SSO connectors

An SSO connector lets users log in to Teleport with your IdP over SAML or OIDC.

When a user logs in, the IdP verifies their identity and sends attributes or claims about them, such as their email and group memberships which Teleport turns into the user's traits.

Learn more in [Single Sign-On](https://goteleport.com/docs/ver/19.x/zero-trust-access/sso.md).

## Access Lists

Access Lists are the primary mechanism for granting users standing privileges. They grant permanent or time-bound permissions to its members by assigning them roles and traits. Note this does not necessarily imply mandatory persistent access to resources - Access Lists can also provide no standing access but ability to request just-in-time access to resources. Each Access List has owners responsible for periodically reviewing the membership.

You can think of an Access List as an analog of an IdP group. Similar to users, Access Lists and their memberships are usually synced by setting up an integration with Okta, Microsoft Entra ID, or any SCIM 2.0 provider, but they can also be created and managed directly in Teleport.

Access Lists support nesting so that IdP groups can be connected to Teleport permissions or more generally for hierarchical organization of access.

Learn more about [Access Lists](https://goteleport.com/docs/ver/19.x/identity-governance/access-lists.md) and including [nested Access Lists](https://goteleport.com/docs/ver/19.x/identity-governance/access-lists/nested-access-lists.md).

## Access Requests

Access Requests provide just-in-time access that automatically expires. A user can request:

- Roles such as a `dba` role for a maintenance window.
- Resources such as a single database or server, so they get access to only what the task needs.

An Access Request goes through these stages:

1. Request: The user submits a request in the Web UI or with `tsh` by selecting resources or roles they need, along with a request reason.
2. Review: Reviewers approve or deny the request. Users can't review their own requests and roles can require more than one approval.
3. Assume: Once approved, the user needs to assume the request to get access to their new resources and roles. A user gets issued a new certificate that is valid for the duration of the request.
4. Expire: Once Access Request expires, the user can no longer assume it.

User roles define what they can request and review. For example, the role below allows to request access to any resources governed by the `db-access` role:

```
kind: role
version: v8
metadata:
  name: db-requester
spec:
  allow:
    request:
      search_as_roles: ["db-access"]

```

And this role lets its users review those requests:

```
kind: role
version: v8
metadata:
  name: db-reviewer
spec:
  allow:
    review_requests:
      roles: ["db-access"]
      preview_as_roles: ["db-access"]

```

Teleport can notify reviewers via Slack and other messaging and incident management tools, and can approve some requests automatically.

Learn more about [Access Requests](https://goteleport.com/docs/ver/19.x/identity-governance/access-requests.md), [Access Request plugins](https://goteleport.com/docs/ver/19.x/identity-governance/access-requests/plugins.md), and [automatic reviews](https://goteleport.com/docs/ver/19.x/identity-governance/access-requests/automatic-reviews.md).

## How it fits together

## Next steps

Continue with the guide for your IdP:

- [Okta](https://goteleport.com/docs/ver/19.x/workshops/identity-governance/okta.md)
- [Microsoft Entra ID](https://goteleport.com/docs/ver/19.x/workshops/identity-governance/entra-id.md)
- [Other IdPs with SCIM](https://goteleport.com/docs/ver/19.x/workshops/identity-governance/scim.md)
