steampipe plugin install theapsgroup/keycloak

Table: keycloak_user

Obtaining basic user information from the Keycloak realm.

Examples

List all users

select
*
from
keycloak_user;

Get a specific user by id

select
*
from
keycloak_user
where
id = 'a1399321-d1a5-4e00-9034-eb8046d6a9dc';

Get a specific user by username

select
*
from
keycloak_user
where
username = 'testuser';

Get a specific user by email address

select
*
from
keycloak_user
where
email = 'testuser@example.com';

List disabled user accounts

select
*
from
keycloak_user
where
enabled = false;

Schema for keycloak_user

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
created_timestamptimestamp with time zoneTimestamp of user creation
emailtext=Email address of the user
email_verifiedbooleanIndicates if the user has verified their email address
enabledboolean=Indicates if the user is enabled
first_nametext=First name of the user
idtext=Unique identifier for the user
last_nametext=Last name of the user
usernametext=Login/Username of the user