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
Asked
Active
Viewed 181 times
1

Pulkit Jain
- 23
- 3
-
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
-
1Thanks 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 Answers
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