This article details how to enroll and activate Google Authenticator via API.
- Multi-factor Authentication (MFA)
- Run API Call: Factors > Enroll Google Authenticator Factor. Please take note of the UserID and FactorID.
POST {{url}}/api/v1/users/{{userId}}/factors -
From the Output, scroll down to qrcode and click the href link.
- Hit Send.
- Activate Google Authenticator:
POST: {{url}}/api/v1/users/{{userID}}/factors/{{factorID}}/lifecycle/activate
{
"passCode": "[Enter Your Google Authenticator Random 6-digit code]"
}
- Hit Send.
- Check the Okta System logs. The end user should now be enrolled with Google Authenticator.
It is also possible to check under the user's profile > More Actions > Reset Multifactor Option:
NOTE: If the Google PENDING_ACTIVATION response is not received, ensure that Google Authenticator has been added as a factor and that the end user is assigned to the group permitted to use Google Authenticator.
