[英]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.