ARTIFACTORY: How to reset MFA for a single user

AuthorFullName__c
Deepti Sharma
articleNumber
000005467
FirstPublishedDate
2022-11-27T11:57:28Z
lastModifiedDate
2025-05-15

ARTIFACTORY: How to reset MFA for a single user

When MFA is enabled, in addition to your credentials, you will have to authenticate with a one-time password (OTP) generated by the Google Authenticator application. This ensures that in the case where a users' credentials have been compromised, the multi-factor authentication method will prevent malicious users from gaining access to JFrog applications.
 

Problem Statement:

In case a user lost his phone or has changed his phone or he is having issues with entering the digits of the authenticator, we can use the below REST API to reset the mfa status of that user. Please note this API needs to be run after the user is already authenticated for the first time with a google authenticator application and is unable to enter code after that due to unforeseen circumstances mentioned above.
 

How to run the REST API in such cases:
curl -H “Authorization: Bearer {token}” -X DELETE https://server_url/access/api/v1/auth/mfa/{mfauser_name}/status


User-added image

Generate the access token from the admin and use it in place of the {token}. Also, use a valid user name {mfauser_name}.

Once the above API is run, the user will be asked to rescan the authenticator(above screen) and he can enter the code after rescanning.