How to create an initial admin user with add-user-keycloak.sh script in domain mode ?

Solution Verified - Updated -

Issue

  • How to create admin user with add-user-keycloak.sh in domain mode ?
  • Getting below error while adding admin user in domain mode.
14:07:51,925 WARN  [org.keycloak.events] (default task-7) type=LOGIN_ERROR, realmId=master, clientId=security-admin-console, userId=null, ipAddress=10.10.10.10, error=user_not_found, auth_method=openid-connect, auth_type=code, redirect_uri=http://xxx.xxx.xxx.xxx:8080/auth/admin/master/console/, code_id=cd1da7a2-35a4-4b92-9e4d-39138f172a41, username=admin

Environment

  • Red Hat Single Sign-On
    • 7.0
    • 7.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.