To add a new user in Keycloak, follow these steps:
Step 1: Log in to the Keycloak Admin Console
Requirement: The (Partner/customer/internal) user is assigned user_admin role in the relevant keycloak realm/tenant
Navigate to the Keycloak Admin Realm Console in your browser.
Enter your user credentials to log in.
Step 2: Navigate to the User Management Section
In the left-hand menu, click on Users under the "Manage" section.
Step 3: Create a New User
Click the Add user button in the middle of the Users page.
Fill in the following fields:
Email: Enter the user's email address.
First Name: Enter the user's first name.
Last Name: Enter the user's last name.
Set the Email Verified option to "On" if you want the email to be considered verified.
Click the Save button to create the user.
Step 4: Reset the User’s Password
After saving the new user, you will be redirected to the user’s details page.
Click on the Credentials tab.
Click the Credential Reset button.
Select the Update Password option in the required actions field. (optional configure how long it should be valid to use the link to update the password)
Click the Send Email button to send the email to the user.
Step 6: User Sets Their Password
The user will receive an email with a link to set their password. The email will look similar to the example below (Unless we update the email theme).
The user should click the link, which will direct them to a secure page where they can enter and confirm their new password.