Creating New Users in Keycloak for OpenCloud
This guide explains how to create new users in Keycloak for OpenCloud, including "User Light" without personal spaces. While OpenCloud currently does not have a built-in "invite external user" feature, this functionality can be replicated using Keycloak.
Background
One of the most frequently requested features by administrators has been support for guest or external users. Previously, this was discussed as adding external users during the sharing process. These users were provisioned on the fly and received an invite link.
Although OpenCloud does not natively support this method, similar functionality can be achieved using Keycloak for user management.
Assign Admin Permissions in Keycloak
To manage users and groups for OpenCloud, you need a user with administrative privileges in the Keycloak realm.
- Log in to Keycloak as an admin.
- Navigate to the OpenCloud realm
- Assign appropriate roles (such as
manage-user
andview-users
) to the user you want to promote.
Example: A user named dennis
is assigned as a Realm Admin.

Once assigned, the user can log in as a Realm Administrator and access user and group management.
Add New User with standard rights (no Space)
With admin permissions, you can now create users and groups:
-
Login in Keycloak OpenCloud Realm with the user who has admin rights under
https://keycloak.YOUR.DOMAIN/admin/openCloud/console/#/openCloud
-
Navigate to the "Users" section in the Keycloak Admin Console
-
Click Add User
-
Fill in the required user details (e.g., username, email)
-
Optionally assign the user to one or more groups.
-
Click on "Create"
-
Set an inital password

In the opencloud-compose setup, the default user role is OpenCloudGuest
.
This means new users will not receive a personal space by default.
You can change the default role in "Realm Settings" under "User Registration" in the Keycloak admin console.
First Login Experience for the "User Light"
When a "User Light" logs in for the first time, they will:
- Be prompted to change their password
- Update their profile (name, email, etc.)
- Verify their email address
if this was set before.
After successful login, they will not receive a personal space — fulfilling the guest user requirement.

Optional: Enable Self Registration
You can allow users to register themselves without manual creation.
To enable self-registration:
- Log in to Keycloak as an admin.
- Go to the Login settings in the OpenCloud realm.
- Enable the User Registration option.

Self Registration Flow
- Users see a Register option on the login screen.

- They complete the registration form.

After loggin in, the user has now the "User Light" Role with no personal Space.
Summary
By leveraging Keycloak:
- You can create and manage guest users for OpenCloud.
- Guest users can log in without receiving a personal space.
- You can streamline the process with self-registration.
This setup provides a flexible and scalable way to manage external and lightweight users in OpenCloud through Keycloak.