1

I have access to google admin console. I want to know if there is any google API to know whether the 2 factor authentication is enabled or not

  • Does this answer your question? [How do I check if a user has 2-factor authentication enabled via Google Admin SDK APIs](https://stackoverflow.com/questions/26471069/how-do-i-check-if-a-user-has-2-factor-authentication-enabled-via-google-admin-sd) – Iamblichus Jun 24 '20 at 08:48
  • 1
    Thanks for response but I have already gone through the same. The problem with this approach is, it's retention is just 6 months so for say , if I haven't changed my organizations 2FA setting for more than 6 months, I would no longer be getting any response – Pulkit Jain Jun 24 '20 at 14:47

1 Answers1

0

I'm using the google directory api to check users 2fa

Look here: https://developers.google.com/admin-sdk/directory/v1/reference/users

It has:

isEnforcedIn2Sv boolean Is 2-step verification enforced (Read-only) 
isEnrolledIn2Sv boolean Is enrolled in 2-step verification (Read-only)
Josh
  • 31
  • 4