How do I check if a user has 2-factor authentication enabled via Google Admin SDK APIs -
i using google admin sdk apis manage users (create/update) in our organization's google apps account. allow users optionally utilize 2-factor authentication feature , i'd able determine if business relationship has enabled or not when 1 of our internal back upwards reps looks account. looking on docs @ https://developers.google.com/admin-sdk/directory/v1/reference/users, not see attributes indicate setting.
is there way me check if enabled via api?
saw reply old stackoverflow post:
find google apps users not using two-factor authentication
you can find info via reports api of admin sdk: https://developers.google.com/admin-sdk/reports/v1/reference/usage-ref-appendix-a/users-accounts
hope helps!
google-admin-sdk google-directory-api
No comments:
Post a Comment