Open topic with navigation

# Managing OMT Management Portal Access

At times, you may be unable to log in to the OMT Management Portal with the admin user. When this situation occurs, you can unlock the user's account or reset the user's password.

- Resetting the OMT Administrator Password

- Unlocking the OMT Management Portal User Account

- Resetting the User's Password

## Resetting the OMT Administrator Password

You can reset the administrator password on a OMT installation.

1. Browse to OMT Management Portal.
2. Log in using admin USERID and the password you specified during the platform installation in the command line argument. (This URL is displayed at the successful completion of the OMT installation shown earlier.)
3. In the left navigation page, click IDM Administration.
4. In the main panel, click SRG.
5. In the left navigation bar, click Users.
6. In the list of users on the right, select Admin and click Edit.
7. In the bottom right, click Remove Password.
8. Click Add Password.
9. Enter a new admin password, then click Save.

## Unlocking the OMT Management Portal User Account

1. Log in to a master node as root.
2. To access the shell of the `idm` container, run the following command:

     kubectl exec -it $(kubectl get pod -n core -ocustom-columns=NAME:.metadata.name |grep idm|head -1) -n core sh -c idm

3. To unlock the user, run the following command:

    sh /idmtools/idm-installer-tools/idm.sh databaseUser unlockUser -org Provider -name admin

## Resetting the User's Password

1. Log in to a master node as root.
2. Run the following command to access the `idm` pod:

    kubectl exec -it $(kubectl get pod -n core -ocustom-columns=NAME:.metadata.name |grep idm|head -1) -n core sh idm

1. Run the following command to reset the password to a temporary value. (Replace `<new_tmp_password>` with your new temporary password.)

    sh /idmtools/idm-installer-tools/idm.sh databaseUser resetPassword -org Provider -name "admin" -plainPwd "<new_tmp_password>"

If the user account is locked due to too many failed login attempts, run unlock, as described above in "Unlocking the OMT Management Portal User account"

1. Log into the OMT Management Portal with the new temporary password, then set the new non-temporary password on the password reset page.
2. Log in to the OMT Management Portal with the new password.