Manage roles
Roles define what a user or service account can do within a realm or app.Create a realm role
Realm roles are global, and you can assign them to any user or group. Use the following steps to create a realm role:- Log in to the Keycloak Admin Console.
- From the sidebar, navigate to Realm roles > Create role.
- In the Role Name field, enter a role name.
- In the Description field, enter an optional description.
- Click Save.
- Optionally configure Composite Roles to bundle multiple permissions.
Create a client role
Client roles are specific to an app and used for app-level authorizations. Use the following steps to create client roles:- Log in to the Keycloak Admin Console.
- From the sidebar, click Clients and select a previously created client.
- Click the Roles tab.
- Click Create Role.
- In the Role Name field, enter a role name.
- In the Description field, enter an optional description.
- Click Save.
Manage users
Managing users ensures that you can control access to NexusOne apps and maintain security. In Keycloak, it allows you to create user accounts, manage credentials, or enforce password policies.Create a new user
Use the following steps to create a new user:- Log in to the Keycloak Admin Console.
- At the top left corner, select the realm you want to manage.
- Navigate to Users > Add user.
- Provide the required fields:
Usernameis mandatoryEmail,First Name, andLast Nameare optional
- Click Create.
- After creating a user, click the Credentials tab to set an initial password.
- Choose whether the user should update their password on first login.
Manage user credentials
Use the following steps to manage user credentials:- Log in to the Keycloak Admin Console.
- From the sidebar, navigate to Users > username > Credentials.
usernameis a user previously created - Within the credentials tab, you can do the following:
- Reset passwords
- Disable or enable credentials
- Configure temporary or permanent passwords
Assign a role to a user
Use the following steps to assign roles to users:- Log in to the Keycloak Admin Console.
- From the sidebar, click Users and select a previously created user.
- Navigate to Role mappings > Assign role.
- In the available roles table, select a realm or client role you want to assign.
- Click Assign.
Manage groups
Groups allow administrators to combine multiple users and assign roles to them easily.Create a group
Use the following steps to create a group:- Log in to the Keycloak Admin Console.
- From the sidebar, navigate to Groups > Create group and assign roles or attributes to the group.
- In the Name field, enter a group name.
- Click Create.
Add a user to a group
Use the following steps to add a user to a group:- Log in to the Keycloak Admin Console.
- From the sidebar, click Groups and select a previously created group.
- Navigate to Members > Add member.
- In the available member table, select a user you want to add.
- Click Add.
Assign a role to a group
Use the following steps to assign a role to a group:- Log in to the Keycloak Admin Console.
- From the sidebar, click Groups and select a previously created group.
- Navigate to Role mappings > Assign role.
- In the available roles table, select a realm or client role you want to assign.
- Click Assign.
Create a client
Clients represent NexusOne apps or services that rely on Keycloak for authentication and authorization. These apps include, Apache Airflow, Superset, or JupyterHub. Use the following steps to create a client:- Log in to the Keycloak Admin Console.
- From the sidebar, navigate to Clients > Create client.
- In the Client type field, select a client type such as OpenID Connect (OIDC) or Security Assertion Markup Language (SAML).
- In the Client ID field, enter a client ID.
- In the Name and Description field, optionally enter a name and description.
- Click Next.
- Select the authentication and authorization the client needs and click Next.
- Optionally, enter URLs and URIs that define where the client runs and which endpoints Keycloak should redirect after authentication.
- Click Save.
Additional resources
- To get an overview of Keycloak, refer to the Keycloak in NexusOne page.
- For more details about Keycloak, refer to the Keycloak official documentation.
- If you are using the NexusOne portal and want to learn how to configure IAM using Keycloak, refer to the Govern page.