Red Hat · Arazzo Workflow
Red Hat Keycloak Upsert a Realm User
Version 1.0.0
Look up a user by username and update it if it exists, otherwise create it.
View Spec
View on GitHub
CloudContainersEnterpriseHybrid CloudKubernetesLinuxOpen SourceArazzoWorkflows
Provider
Workflows
upsert-user
Upsert a Keycloak realm user keyed on username.
Searches a realm for a user by username and either updates the matched user or creates a new one, resolving the created user's id by re-listing.
1
findUser
listUsers
Search the realm for an exact username match, returning at most one user.
2
updateExisting
updateUser
Update the matched user's profile attributes in place.
3
createUser
createUser
Create a new user in the realm with the supplied profile attributes when no existing user matched the username.
4
resolveCreatedUser
listUsers
Re-read the realm by username to resolve the id of the user that was just created, since the create call returns no body.