# Keycloak data model

Use this schema to interpret KeycloakRealm, KeycloakClient, and KeycloakRole records in the Keycloak inventory.

## Interpreting the object types

A realm is an administrative boundary. A client identifies an application and a role describes an entitlement. Matching display names across realms does not establish that the underlying objects are the same.

## Selected record fields

KeycloakRealm includes o_auth2_device_code_lifespan, enabled, and display_name. KeycloakClient includes use_template_scope, enabled, and type.

Inventory fields

Entity | Example fields

KeycloakRealm | o_auth2_device_code_lifespan, enabled, display_name

KeycloakClient | use_template_scope, enabled, type

KeycloakRole | scope_param_required, name, client_role

[Read the Keycloak module guide](https://subimage.cc/docs/modules/keycloak/setup/)

[Browse supported modules](https://subimage.cc/docs/modules/supported/)
