Skip to content

User Management in Keycloak

Log in to Keycloak

Login to Keycloak

Customer-Realm-Management-Console-login

To manage users navigate to Users in left-side menu (marked by 1).

Customer-Realm-Management-Console-overview

Manage users

  1. Click Add user to create a new user. Customer-Realm-mgmt-Console-Add-User Mandatory fields are marked by an asterisk (*). Optionally select additional actions to be performed. These can be selected also after creating the user. Customer-Realm-Management-Create-User-Required-Actions

  2. Enter the user's information:

    - the Username. - the Email in the format *.@domain. In case of an invalid value, a notification will be displayed. - the First name. - the Last Name.

  3. By pressing button Join Groups you can assign the user to groups. This can be done also after user creation.

  4. By clicking the button Create the user gets created. Customer-Realm-Management-Console-Create-User.png Please see the example below: Customer-Realm-Management-Console-Create-User-Example.png

  5. The user is created without a password. To set password, user needs to use Forgot password, that will generate first password. Additional Required actions have to be set, during the user creation process. Please refer to point 6 in this section. There is also possibility to create an initial password for new user, but we strongly do not recommend this. If you navigate to Credentials tab and click Set Password. It is recommended to create temporary passwords during user creation by selecting the Temporary option — users will be required to change their passwords on first login. Enter the (temporary) password two times. It is recommended to create strong passwords based on the customer password policy.

    Please see examples below:

    Customer-Realm-Management-Console-Set-User

    Customer-Realm-Management-Console-Set-User-Temporary-Password

  6. During the user creation process (following the point 1 in this section), we strongly recommend to increase the user account security by setting additional Required user actions.

    • Verify Email - sends an email to the user to verify their email address.
    • Update Password - requires user to enter a new password.
    • Configure OTP - requires setup of a One Time Password (OTP), used as a 2 Factor-Authentication (2FA) authentication security mechanism. Required user actions

      Within this configuration, during the first login, user will be asked for email verification, password update or configure OTP authentication.

Manage OTP configuration

If the Configure OTP user action is enabled, the user will be prompted to configure a One-Time Password on the next login to the Gardener Dashboard. A QR code will be displayed (or, alternatively the secret Key if QR scanning is not possible for the user).

The OTP is based on the well-known TOTP scheme used by the various authenticator applications available on mobile phones. The user is free to choose any preferred app.

If the user needs to change or reset existing OTP configuration, then it is needed to delete the previous OTP configuration from user profile as follows:

  • Navigate in the realm to the User section (panel on the left side)
  • From the user list, choose the one for which you need to reset OTP
  • Navigate to the Credentials section and delete existing OTP configuration history

    Delete otp history

  • In Details section, verify that all Required user actions (see above) are set up
  • On the next login to the Gardener Dashboard the user is prompted for OTP configurations again

Manage group memberships

To manage groups, navigate in left-side menu to Groups marked by 2.

  1. Select the Group to modify.

  2. Select the Members tab and press the Add member button.

    Customer-Realm-Management-Console-Groups-Add-Member

Manage group role mappings

To manage roles mapped to groups, navigate in left-side menu to Groups marked by 2.

  1. Select the Group to modify.

  2. Select the Role Mapping tab and press the Add role button.

    Customer-Realm-Management-Console-Groups-Mapp-Role