add-user-iam.bat or add-user-iam.sh allows to create admin user from command prompt. The following example shows how to run this command to create a new user called "newadmin" by providing a password of your choice
C:\Program Files\CA\DevTest\IdentityAccessManager\bin>add-user-iam.bat -u newadmin
Press ctrl-d (Unix) or ctrl-z (Windows) to exit
Password:
Added 'newadmin' to 'C:\PROGRA~1\CA\DevTest\IDENTI~1\standalone\configuration\keycloak-add-user.json', restart server to load user
Press any key to continue . . .
Restart IAM Server and now you would be able to login to IAM as 'newadmin'. Once you login to IAM as newadmin, you would be able to reset the password of default 'admin' user
NOTE: If you get JAVA error when executing DevTes\IdentityAccessManager\bin>add-user-iam.bat -u newadmin, then you can execute it from C:\Program Files\CA\DevTest/jre/bin folder with the full path to C:\Program Files\CA\DevTest\IdentityAccessManager\bin>add-user-iam.bat -u newadmin
On Linux this example is for DevTest 10.6.0, but will work the same on other supported versions.
Follow these steps (the export is not permanent, just for this session)
1. [email protected]:/opt/CA/DevTest10.6.0/jre/bin# export JAVA_HOME=/opt/CA/DevTest10.6.0/jre
2. [email protected]:/opt/CA/DevTest10.6.0/jre/bin# export PATH=$JAVA_HOME:$PATH
3. [email protected]:/opt/CA/DevTest10.6.0/IdentityAccessManager/bin# ./add-user-iam.sh -u newadmin
Press ctrl-d (Unix) or ctrl-z (Windows) to exit
Password:
Added 'newadmin' to '/opt/CA/DevTest10.6.0/IdentityAccessManager/standalone/configuration/keycloak-add-user.json', restart server to load user