How do I unlock the admin account and reset it's password in CA API Developer Portal ("Portal")?
All Supported versions of API Developer Portal.
Postgres Database:
External MySQL Database:
Reset for user created default tenant (apim)
1. Unlock the admin user account for default tenant (apim)
a. Connect to mysql database: use portal;
b. Review the admin account lock status by running the following query: select * from USER_INFO where username='admin';
c. You should see that the locked account has the status set to "locked" and invalid_login_attempt set to a number greater than 3.
d. Update the table that is locking the account by running the following:
update USER_INFO set status='ENABLED', invalid_login_attempt=0 where username='admin' and tenant_id='apim';
2. Reset the admin user password.
a. To reset the admin password back to the default of 7layereyal7, the following query should be run: update USER_INFO set password_salt='5b6085dc-461e-4698-afb6-2ed0cf6c88df', password_hash='AcXNHGp/7/8FYgd9VatEU8AuzJmRsR0DUt2zN9qw40nJFGr3B6Kd0Le7A2YhT6NnCEiNNFf05YOXjR9YGqZk3A==' where username='admin' and tenant_id='apim';
b. Log into Portal Web UI and assign a new password to the admin user as required.
Reset for user created tenant (eg: tenant01)
1. Unlock the admin user account for user created tenant (tenant01)
a. Connect to mysql database: use portal;
b. Review the admin account lock status by running the following query: select * from USER_INFO where username='admin';
c. You should see that the locked account has the status set to "locked" and invalid_login_attempt set to a number greater than 3.
d. Update the table that is locking the account by running the following:
update USER_INFO set status='ENABLED', invalid_login_attempt=0 where username='admin' and tenant_id='tenant01';
2. Reset the admin user password.
a. To reset the admin password back to the default of 7layer, the following query should be run: update USER_INFO set password_salt='63c0b55a-1890-4819-aa17-9b45a8e9b3de', password_hash='OCsgsSKlZ3zXgPDs4hbk7HAfIZFkRfgWTMe9vWKmCVjl6xjx8gOd/9Ch33V/sDHNYIsswBstWkuDh3aGMJ/RLA==' where username='admin' and tenant_id='tenant01';
b. Log into Portal Web UI and assign a new password to the admin user as required.