Keycloak Provision Realm Role and User
A 3-step recipe with Red Hat. We can help you get access.
Recipe · 3 steps
Keycloak Provision Realm Role and User
with Red Hat · Identity & Access Management
Verify a realm, create a realm role, and create a user.
- Retrieve the realm to confirm it exists before provisioning roles and users into it.
- Create a new realm-level role that can later be granted to users.
- Create a new user in the realm with the supplied username and email.
What you'll need to have ready
- token: Admin bearer token for the Keycloak admin API.
- realm: The realm to provision into.
- roleName: The name of the realm role to create.
- roleDescription: A description of the realm role.
- username: The username for the new user.
- email: The email address for the new user.
- enabled: Whether the new user account is enabled.
For your developer
Arazzo workflow red-hat:provision-role-and-user, 3 operations: getRealm → createRealmRole → createUser. Specs on APIs.io.