问题描述
我正在使用 People API listDirectoryPeople,但遇到了这个问题。对于某些用户,会检索属性名称,但不会为其他用户检索。
身份验证不是问题,因为该项目在 Google Apps Script 中,而我使用的是 People 服务。
执行此 API request 后,我得到如下响应:
{"people": [{"resourceName": "people/117652981masked","etag": "masked"},{"resourceName": "people/10883742masked",{"resourceName": "people/103089448masked","etag": "masked","names": [{"Metadata": {"primary": true,"source": {"type": "PROFILE","id": "10308944877masked"}},"displayName": "masked","familyName": "masked","givenname": "masked","displayNameLastFirst": "masked","unstructuredname": "masked"}]},... }
如果我只要求 emailAddressed 或 photo,信息是正确的。
您知道我们的 GSuite 域配置是否有问题吗?或者这个 api 中是否有错误?
这个问题与this other one有关,但不是同一个问题。也许是同样的错误/问题,但我不知道。
提前致谢
解决方法
通过在新的 Google+ 上注册 Currents 解决了这个问题。当我注册时,我得到了我的名字。
感谢支持。