如何检查用户是否通过Google Admin SDK API启用了2要素身份验证 [英] How do I check if a user has 2-factor authentication enabled via Google Admin SDK APIs

查看:69
本文介绍了如何检查用户是否通过Google Admin SDK API启用了2要素身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Admin SDK API管理我们组织的Google应用程序帐户中的用户(创建/更新).我们允许用户选择使用2要素身份验证功能,并且当我们的内部支持代表之一查询他们的帐户时,我希望能够确定是否启用了该帐户.在 https://developers.google.com/admin- sdk/directory/v1/reference/users ,我看不到任何表明该设置的属性.

I am using the Google Admin SDK APIs to manage users (create/update) in our organization's Google apps account. We allow users to optionally use the 2-factor authentication feature and I'd like to be able to determine if an account has it enabled or not when one of our internal support reps looks up their account. Looking over the docs at https://developers.google.com/admin-sdk/directory/v1/reference/users, I do not see any attributes that would indicate this setting.

我是否还有另一种方法可以检查是否通过API启用了它?

Is there another way for me to check if it is enabled via an API?

推荐答案

从旧的Stackoverflow帖子中看到了答案:

Saw an answer from an old Stackoverflow post:

查找所有未使用两个-要素认证

您实际上可以通过Admin SDK的Reports API找到该信息: https://developers. google.com/admin-sdk/reports/v1/reference/usage-ref-appendix-a/users-accounts

You can actually find that information via Reports API of Admin SDK: https://developers.google.com/admin-sdk/reports/v1/reference/usage-ref-appendix-a/users-accounts

希望这会有所帮助!

这篇关于如何检查用户是否通过Google Admin SDK API启用了2要素身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆