【问题标题】:Get All Users password of Google Apps Account Using PHP Client Library使用 PHP 客户端库获取 Google Apps 帐户的所有用户密码
【发布时间】:2019-04-03 09:53:28
【问题描述】:

我知道人们会获取帐户详细信息。但是如果我尝试收到除密码以外的帐户详细信息。

我的代码是:

$optParams = array(
  //'customer' => 'www2',
  'customer' => 'my_customer',
   'maxResults' => 50,
   'orderBy' => 'email',
);
$results = $service->users->listUsers($optParams);

请帮帮我

【问题讨论】:

标签: php google-api google-api-php-client google-workspace google-directory-api


【解决方案1】:

gsuite user resource 确实包含密码文件。但是,密码不是以明文形式存储的,而是散列值。看到这个哈希值对你没有帮助。

即使是 gsuite 的管理员,您也永远无法看到用户密码。一个人的密码是他们自己的,甚至管理员也无权看到他们。

虽然user update 允许您设置用户密码,但此字段是可写的,但这并不意味着它是可读的。

这在文档中有明确说明 (user resource)

密码值永远不会在 API 的响应正文中返回。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2021-04-26
  • 1970-01-01
  • 1970-01-01
  • 2017-12-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多