When we have a user that is locked out of Artifactory, we can unlock them utilizing a REST API Call.
**NOTE** These REST API Calls can only be performed with an ADMIN ACCOUNT
If we don’t know what user is locked out, please run this REST API Call:
This API request will return an array of locked users.
curl -uADMIN_ACC JFROG_URL/artifactory/api/security/lockedUsers
If we know a single locked user’s username please use this REST API Call:
What this API request will do is it will unlock a specific user that is inputted in the command.
curl -uADMIN_ACC JFROG_URL/artifactory/api/security/{USERNAME}
If we want to unlock multiple users please use this REST API Call:
When this API request is called, all locked users that are inputted in the command will be unlocked.
curl -uADMIN_ACC JFROG_URL/artifactory/api/security/{USERNAME} -H 'Content-Type: application/json' -d '[ {userA}, {userB} ]'
**NOTE** These REST API Calls can only be performed with an ADMIN ACCOUNT
If we don’t know what user is locked out, please run this REST API Call:
This API request will return an array of locked users.
curl -uADMIN_ACC JFROG_URL/artifactory/api/security/lockedUsers
If we know a single locked user’s username please use this REST API Call:
What this API request will do is it will unlock a specific user that is inputted in the command.
curl -uADMIN_ACC JFROG_URL/artifactory/api/security/{USERNAME}
If we want to unlock multiple users please use this REST API Call:
When this API request is called, all locked users that are inputted in the command will be unlocked.
curl -uADMIN_ACC JFROG_URL/artifactory/api/security/{USERNAME} -H 'Content-Type: application/json' -d '[ {userA}, {userB} ]'