简体   繁体   English

使用PHP客户端库获取Google Apps帐户的所有用户密码

[英]Get All Users password of Google Apps Account Using PHP Client Library

I know guys get account details.But if i try account details received except password. 我知道人们会得到帐户详细信息。但是,如果我尝试收到除密码之外的帐户详细信息。

My code is: 我的代码是:

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

Please help me 请帮我

A gsuite user resource does contain a password filed. gsuite 用户资源确实包含一个密码字段。 However passwords are not stored clear text they are hash values. 但是,密码不是以明文形式存储的,它们是哈希值。 Seeing this hash value would not help you. 看到此哈希值将无济于事。

Even as admin of gsuite you are never going to be able to see a users password. 即使是gsuite的管理员,您也永远也看不到用户密码。 A persons password is their own and even admins have no right seeing them. 个人密码是他们自己的,甚至管理员也无权查看它们。

While user update will allow you to set a users password this field is write able but that does not mean that its going to be readable. 尽管用户更新将允许您设置用户密码,但此字段是可写的,但这并不意味着它将是可读的。

This is clearly stated in the documentation ( user resource ) 文档( 用户资源 )中明确指出了这一点。

The password value is never returned in the API's response body. 密码值永远不会在API的响应主体中返回。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 PHP 客户端库获取 Google Apps 帐户的所有用户 - Get All Users of Google Apps Account Using PHP Client Library 如何使用服务帐户的Google API php客户端库从共享(非主要)日历中列出/获取事件? - How to list/ get events from a shared (non-primary) calendar using google api php client library for service account? 使用适用于PHP的Google API客户端库检索成员的所有组 - Retrieve all groups for a member using Google APIs Client Library for PHP PHP&cPanel - 有没有办法获得用户帐户上所有电子邮件的总大小 - PHP & cPanel - Is there a way to get total size of all emails on a users account 使用Google PHP客户端库的致命错误 - Fatal Error Using Google PHP Client Library 如何使用php客户端库从Google DFP访问所有Lineitems属性 - How to access all Lineitems attributes from Google DFP using php client library 使用服务帐户的 Google Cloud API PHP 客户端身份验证 - Google Cloud API PHP Client Authentication using Service Account 通过Google API客户端PHP库访问Google Play帐户报告 - Access Google play account reports through Google API Client PHP Library PHP:我可以使用帐户和密码来授权google-api-client连接吗? - PHP: Can I use account and password to authorize a google-api-client connection? 从谷歌应用程序帐户用 PHP 发送电子邮件 - Send email in PHP from a google apps account
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM