Skip to content

Admin Console Tour

The admin console is your control centre for Keycloak. Every realm, client, user, role, and identity provider is created and managed here. Before you create anything, it is worth spending a few minutes understanding the layout so you do not get lost.

  1. Make sure Keycloak is running (see the previous lesson if you have not started it yet).
  2. Open http://localhost:8080 in your browser.
  3. Click “Administration Console”.
  4. Enter admin as the username and admin as the password.
  5. Click “Sign in”. You land on the master realm’s home page.

The top-left of the admin console shows the current realm name — by default “Keycloak” (the master realm). Click it to open a drop-down that lists all your realms and lets you create a new one. Always check which realm you are in before making changes — it is easy to accidentally create a client in the wrong realm.

The sidebar gives you access to every resource in the current realm:

Nav itemWhat you manage here
Realm settingsToken lifespans, security defences, email settings, themes
ClientsApplications registered to use this realm for auth
Client scopesShared protocol mappers and scope definitions
Realm rolesRoles available to all clients in this realm
UsersUser accounts, credentials, and role assignments
GroupsUser groups and group-level role assignments
Identity providersExternal IdPs (Google, GitHub, SAML, OIDC)
User federationLDAP and Active Directory connections
SessionsActive user sessions across all clients
EventsAudit log of login events and admin events
  1. Click the realm selector (top-left).
  2. Click “Create realm”.
  3. In the “Realm name” field, enter my-app (lowercase, no spaces).
  4. Leave “Enabled” toggled on.
  5. Click “Create”.
  6. You are now inside the my-app realm. The top-left selector now shows “my-app”.
OptionBenefitCost
Manage via the admin console (manual)Immediate feedback, good for learning and one-off setup, no code requiredHard to repeat, no version-controlled audit trail, more prone to human error as the team grows
Manage via REST API / Terraform providerConfiguration as code, reviewable through a pull request, fast to reproduce a new environmentRequires writing and maintaining scripts/Terraform state, with a steeper initial learning curve
  • Not changing the default admin credentials (admin/admin) — this default is meant only for bootstrap. Change the password or create a new admin user and disable the default one before going live.
  • Creating real application clients in the master realm — master should be reserved for administering Keycloak itself; mixing in real application clients unnecessarily widens the blast radius around the admin account.
  • Forgetting to check the realm selector before creating a resource — accidentally creating a user, client, or role in the wrong realm is very common, especially when switching between several realms in one day.

Real-world example

A platform team managing many apps — commonly creates a separate realm per business unit or per environment (dev/staging/prod), then uses the Keycloak Terraform provider to provision clients and roles reproducibly instead of clicking through the admin console every time.

An organisation that has been through a security audit — often enforces a policy that the master realm’s admin account must have MFA enabled and restricts access to the platform/security team only, with no general developer holding admin rights in the master realm.

Where do you find the realm selector in the admin console?
Which nav section lets you manage applications that integrate with Keycloak?
What is a safe realm name format?
Why should you avoid working in the master realm for your application?