Manage Users
This page explains how to manage users in kdb Insights Enterprise, including how to create users, assign roles and groups, reset passwords, and more.
Users are entities that are able to log into your system. They can be assigned group membership for use with entitlements and have specific roles assigned to them.
Creating users
UI
CLI
-
Log into the administration console.
-
Choose the target realm (
$REALM_NAME
) from the top-left realm drop-down. -
Click Users in the menu.
-
Click Add User.
-
Enter the details for the new user.
-
Click Save.
-
Give the user credentials:
Click the Credentials tab
Click Set password
Choose a password and leave Temporary set to on
Click Save
Confirm by clicking on Save password
Warning
Ensure you select the correct realm ($REALM_NAME
) as the UI defaults to the Master
realm on login.
Use kxi user
to create a new user.
bash
kxi user create $USERNAME \
--email $EMAIL \
--password $PASSWORD \
--temporary
Replace the following:
-
$USERNAME
: Username for the new user. -
$EMAIL
: Email for the new user. -
$PASSWORD
: Password for the new user.
Note
The user is asked to reset their password on first login when the --temporary
flag is set
Assigning roles
UI
CLI
Assign roles to a user through the Role Mappings tab for that user.
-
Log into the administration console.
-
Click Users in the menu.
-
Click the user that you want to add the roles to.
-
Click the Role mappings tab.
-
Click Assign role.
-
Select the role you want to assign to the user from the dialog.
-
Click Assign.
Use kxi user
to assign roles.
bash
kxi user assign-roles $USERNAME --roles $ROLES
Replace the following:
-
$USERNAME
: Username to assign roles to. -
$ROLES
: Comma-separated list of roles to assign.
Note
View available roles with kxi user get-available-roles
Assigning groups
Refer to Assigning groups to a user for details on how to assign a group to a user.
Password resets
UI
CLI
You can reset passwords via the administration console.
-
Log into the administration console.
-
Click Users in the menu.
-
Click the user whose password you want to reset.
-
Click the Credentials tab.
-
Enter a new password.
-
Click Reset Password.
Use kxi user
to reset a user's password.
bash
kxi user reset-password $USERNAME --password $PASSWORD
Replace the following:
-
$USERNAME
: Username to reset password for. -
$PASSWORD
: New password for the user.
Forgotten passwords
The application can provide password reset functionality via email if the realm is configured with an email server.
-
Log into the administration console.
-
Click Realm settings in the menu.
-
Click the Login tab.
-
Toggle Forgot password to ON.
A 'Forgot password?' link is now be displayed on the login screen.
Identity brokering
To use an identity provider other than Keycloak to authenticate users, configure this under Identity Providers in the menu.
The setup for this varies depending on the type of identity provider.
Refer to Keycloak Identity Brokering to read more for your specific use case.
Note
A user that authenticates via a different identity provider than Keycloak must log in at least once before roles can be assigned to them.
Tip
If an identity provider is configured but you can't see it on the login screen, ensure you are getting redirected to the correct login page: https://${INSIGHTS_HOSTNAME}/auth/admin/${REALM_NAME}/console/