We're implementing two-factor authentication for all of our Google Apps users.
I've written a script to list the users in a Google Apps domain based on the sample that Google provides (https://developers.google.com/apps-script/advanced/admin-sdk-directory#list_all_users)
I'd like to filter that list by users who are or aren't using two-factor authentication but I cannot find anywhere in the User API that allows me to do this.
Does anyone know who I can find out if a user is using two-factor authentication or not?
I found this info in the Reporting API (of the Admin SDK).
Here's a snippet I just wrote:
By the way, it seems you can have this report on the Apps Dashboard and can even enforce your users to do it.