Google People API listDirectoryPeople不返回目录中某些用户的名称 [英] Google People API listDirectoryPeople is not returning names for some users in the directory
问题描述
我正在使用People API listDirectoryPeople,并且遇到了这个问题.对于某些用户,将检索属性名称,而对于其他用户,则不会检索.
I am working with the People API listDirectoryPeople and I am stuck with this problem. For some users, attribute names are retrieved, but not for others.
身份验证不是问题,因为该项目在Google Apps脚本中,并且我正在使用People服务.
The authenthication is not a problem because this project is in Google Apps Script and I am using the People service.
With this API request executed I get a response as following:
{"people": [{"resourceName": "people/117652981masked","etag": "masked"},{"resourceName": "people/10883742masked","etag": "masked"},{"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或照片,则说明信息正确.
If I only request emailAddressed or photo, the information is correct.
您知道我们的GSuite域配置是否存在问题吗?还是该api中存在错误?
Do you know if there is something wrong in our GSuite domain configuration? or is there a bug in this api related?
This question is related to this other one but is not the same question. Maybe it is the same bug/problem, but I don't know.
预先感谢
推荐答案
此问题已通过在 Currents ,新的Google+.注册后,我知道了自己的名字.
This issue is solved by registering at Currents, the new Google+. When I registered, I got my name.
感谢支持.
这篇关于Google People API listDirectoryPeople不返回目录中某些用户的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!