Create a user in Keycloak

Manually create users if you work in local-only mode or without SSO-only configuration
Read time 1 minuteLast updated 5 days ago

After you have set up single sign-on (SSO) for the realm, the enterprise identity provider (IdP) automatically creates the account for the user on their first sign-in. On subsequent sign-ins, the IdP updates the user properties. Nevertheless, you might need to create user accounts in Keycloak in these cases:
  • You use Keycloak in local-only mode, that is, with only local users.
  • You haven't applied SSO-only configuration. Read more about configuring the user experience.
To create users in Keycloak, complete these steps:
  1. In the admin console, go to Manage > Users.
  2. Select Add user.
  3. Provide these settings:

Field

Description

User name
A unique name for the user. The recommended practice is the email address.
E-mail
The user's email address.
First name
Leave this field empty. The current solution doesn't use this field.
Last name
The user's full name, for example,
Firstname Lastname
. The recommended practice is to use
Last name
property to store the full name, because Unity ID stores only full name without distinction between the first name and the last name.
After you have created the user, change the configuration as follows:
  1. On the Credentials tab, set a password so that the user can sign in.
  2. Grant access to an organization and to a project.